Class OptionContainer
java.lang.Object
de.haumacher.msgbuf.data.AbstractDataObject
de.haumacher.msgbuf.generator.ast.WithOptions
de.haumacher.msgbuf.generator.ast.OptionContainer
- All Implemented Interfaces:
DataObject,ReflectiveDataObject,Observable
Container for temporary collecting annotations without further semantics.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.haumacher.msgbuf.generator.ast.WithOptions
WithOptions.TypeKind, WithOptions.Visitor<R,A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifier for theOptionContainertype in JSON format.Fields inherited from class de.haumacher.msgbuf.generator.ast.WithOptions
_listener, OPTIONS__PROP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionContainercreate()Creates aOptionContainerinstance.jsonType()kind()The type code of this instance.Adds a key value pair to theWithOptions.getOptions()map.static OptionContainerReads a new instance from the given reader.setOptions(Map<String, Option> value) <R,A> R visit(WithOptions.Visitor<R, A> v, A arg) Accepts the given visitor.Methods inherited from class de.haumacher.msgbuf.generator.ast.WithOptions
get, getOptions, internalPutOption, internalRegisterListener, internalSetOptions, internalUnregisterListener, properties, readField, readWithOptions, registerListener, removeOption, set, unregisterListener, writeFields, writeToMethods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContent
-
Field Details
-
OPTION_CONTAINER__TYPE
Identifier for theOptionContainertype in JSON format.- See Also:
-
-
Constructor Details
-
OptionContainer
protected OptionContainer()Creates aOptionContainerinstance.- See Also:
-
-
Method Details
-
create
Creates aOptionContainerinstance. -
kind
Description copied from class:WithOptionsThe type code of this instance.- Specified by:
kindin classWithOptions
-
setOptions
- Overrides:
setOptionsin classWithOptions- See Also:
-
putOption
Description copied from class:WithOptionsAdds a key value pair to theWithOptions.getOptions()map.- Overrides:
putOptionin classWithOptions
-
jsonType
-
readOptionContainer
Reads a new instance from the given reader.- Throws:
IOException
-
visit
Description copied from class:WithOptionsAccepts the given visitor.- Specified by:
visitin classWithOptions
-