Package io.protostuff.compiler.model
Class AbstractDescriptor
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- io.protostuff.compiler.model.AbstractDescriptor
-
- All Implemented Interfaces:
Descriptor,Element
- Direct Known Subclasses:
AbstractUserTypeContainer,Enum,EnumConstant,Field,Oneof,Service,ServiceMethod
public abstract class AbstractDescriptor extends AbstractElement implements Descriptor
Base class for all protocol buffer nodes.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringnameprotected DynamicMessageoptions-
Fields inherited from class io.protostuff.compiler.model.AbstractElement
comments, sourceCodeLocation
-
-
Constructor Summary
Constructors Constructor Description AbstractDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()DynamicMessagegetOptions()voidsetName(String name)-
Methods inherited from class io.protostuff.compiler.model.AbstractElement
addComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.protostuff.compiler.model.Descriptor
getDescriptorType
-
Methods inherited from interface io.protostuff.compiler.model.Element
getCommentLines, getComments, getParent, getSourceCodeLocation
-
-
-
-
Field Detail
-
name
protected String name
-
options
protected DynamicMessage options
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceDescriptor
-
setName
public void setName(String name)
-
getOptions
public DynamicMessage getOptions()
- Specified by:
getOptionsin interfaceDescriptor
-
-