Class Part
java.lang.Object
de.haumacher.msgbuf.data.AbstractDataObject
de.haumacher.msgbuf.generator.ast.WithOptions
de.haumacher.msgbuf.generator.ast.DefinitionBase
de.haumacher.msgbuf.generator.ast.Part
- All Implemented Interfaces:
DataObject,ReflectiveDataObject,Observable
Member of a
Definition.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.haumacher.msgbuf.generator.ast.WithOptions
WithOptions.TypeKind -
Field Summary
FieldsFields inherited from class de.haumacher.msgbuf.generator.ast.DefinitionBase
COMMENT__PROPFields inherited from class de.haumacher.msgbuf.generator.ast.WithOptions
_listener, OPTIONS__PROP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetIndex()The numeric identifier for this member.final StringgetName()The name of this member.final DefinitiongetOwner()TheDefinitiondefinint thisPart.final booleanhasOwner()Checks, whethergetOwner()has a value.protected final voidinternalSetIndex(int value) Internal setter forgetIndex()without chain call utility.protected final voidinternalSetName(String value) Internal setter forgetName()without chain call utility.protected final voidinternalSetOwner(Definition value) Internal setter forgetOwner()without chain call utility.Adds a key value pair to theWithOptions.getOptions()map.protected voidreadField(JsonReader in, String field) static PartreadPart(JsonReader in) Reads a new instance from the given reader.voidsetComment(String value) setIndex(int value) setOptions(Map<String, Option> value) setOwner(Definition value) final <R,A> R visit(DefinitionBase.Visitor<R, A> v, A arg) Accepts the given visitor.abstract <R,A> R visit(Part.Visitor<R, A> v, A arg) Accepts the given visitor.protected voidwriteFields(JsonWriter out) Methods inherited from class de.haumacher.msgbuf.generator.ast.DefinitionBase
getComment, internalSetComment, readDefinitionBase, visitMethods inherited from class de.haumacher.msgbuf.generator.ast.WithOptions
getOptions, internalPutOption, internalRegisterListener, internalSetOptions, internalUnregisterListener, kind, readWithOptions, registerListener, removeOption, unregisterListener, writeToMethods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.haumacher.msgbuf.data.ReflectiveDataObject
jsonType
-
Field Details
-
NAME__PROP
- See Also:
-
INDEX__PROP
- See Also:
-
OWNER__PROP
- See Also:
-
-
Constructor Details
-
Part
protected Part()Creates aPartinstance.
-
-
Method Details
-
getName
The name of this member. -
setName
- See Also:
-
internalSetName
Internal setter forgetName()without chain call utility. -
getIndex
public final int getIndex()The numeric identifier for this member. -
setIndex
- See Also:
-
internalSetIndex
protected final void internalSetIndex(int value) Internal setter forgetIndex()without chain call utility. -
getOwner
TheDefinitiondefinint thisPart. -
setOwner
- See Also:
-
internalSetOwner
Internal setter forgetOwner()without chain call utility. -
hasOwner
public final boolean hasOwner()Checks, whethergetOwner()has a value. -
setComment
- Overrides:
setCommentin classDefinitionBase- See Also:
-
setOptions
- Overrides:
setOptionsin classDefinitionBase- See Also:
-
putOption
Description copied from class:WithOptionsAdds a key value pair to theWithOptions.getOptions()map.- Overrides:
putOptionin classDefinitionBase
-
properties
- Specified by:
propertiesin interfaceReflectiveDataObject- Overrides:
propertiesin classDefinitionBase
-
get
- Specified by:
getin interfaceReflectiveDataObject- Overrides:
getin classDefinitionBase
-
set
- Specified by:
setin interfaceReflectiveDataObject- Overrides:
setin classDefinitionBase
-
readPart
Reads a new instance from the given reader.- Throws:
IOException
-
writeFields
- Overrides:
writeFieldsin classDefinitionBase- Throws:
IOException
-
readField
- Overrides:
readFieldin classDefinitionBase- Throws:
IOException
-
visit
Accepts the given visitor. -
visit
Description copied from class:DefinitionBaseAccepts the given visitor.- Specified by:
visitin classDefinitionBase
-