Class Constant
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
de.haumacher.msgbuf.generator.ast.Constant
- All Implemented Interfaces:
DataObject,ReflectiveDataObject,Observable
A constant of an
EnumDef.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.haumacher.msgbuf.generator.ast.Part
Part.Visitor<R,A> Nested classes/interfaces inherited from class de.haumacher.msgbuf.generator.ast.WithOptions
WithOptions.TypeKind -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifier for theConstanttype in JSON format.Fields inherited from class de.haumacher.msgbuf.generator.ast.Part
INDEX__PROP, NAME__PROP, OWNER__PROPFields 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 TypeMethodDescriptionstatic Constantcreate()Creates aConstantinstance.jsonType()kind()The type code of this instance.Adds a key value pair to theWithOptions.getOptions()map.static ConstantReads a new instance from the given reader.setComment(String value) setIndex(int value) setOptions(Map<String, Option> value) setOwner(Definition value) <R,A> R visit(Part.Visitor<R, A> v, A arg) Accepts the given visitor.Methods inherited from class de.haumacher.msgbuf.generator.ast.Part
get, getIndex, getName, getOwner, hasOwner, internalSetIndex, internalSetName, internalSetOwner, properties, readField, readPart, set, visit, writeFieldsMethods 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, readWithOptions, registerListener, removeOption, unregisterListener, writeToMethods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContent
-
Field Details
-
CONSTANT__TYPE
Identifier for theConstanttype in JSON format.- See Also:
-
-
Constructor Details
-
Method Details
-
create
Creates aConstantinstance. -
kind
Description copied from class:WithOptionsThe type code of this instance.- Specified by:
kindin classWithOptions
-
setName
-
setIndex
-
setOwner
-
setComment
- Overrides:
setCommentin classPart- See Also:
-
setOptions
- Overrides:
setOptionsin classPart- See Also:
-
putOption
Description copied from class:WithOptionsAdds a key value pair to theWithOptions.getOptions()map. -
jsonType
-
readConstant
Reads a new instance from the given reader.- Throws:
IOException
-
visit
Description copied from class:PartAccepts the given visitor.
-