Class Option
java.lang.Object
de.haumacher.msgbuf.data.AbstractDataObject
de.haumacher.msgbuf.generator.ast.Option
- All Implemented Interfaces:
DataObject,ReflectiveDataObject,Observable
- Direct Known Subclasses:
Flag,NumberOption,StringOption
Base class for an option annotation.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidprotected final voidabstract Option.TypeKindkind()The type code of this instance.static OptionreadOption(JsonReader in) Reads a new instance from the given reader.abstract <R,A> R visit(Option.Visitor<R, A> v, A arg) Accepts the given visitor.final voidwriteTo(JsonWriter out) Methods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readField, readFields, toString, writeContent, writeFieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.haumacher.msgbuf.data.ReflectiveDataObject
get, jsonType, properties, set
-
Field Details
-
_listener
-
-
Constructor Details
-
Option
protected Option()Creates aOptioninstance.
-
-
Method Details
-
kind
The type code of this instance. -
registerListener
- Specified by:
registerListenerin interfaceObservable
-
internalRegisterListener
-
unregisterListener
- Specified by:
unregisterListenerin interfaceObservable
-
internalUnregisterListener
-
readOption
Reads a new instance from the given reader.- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceDataObject- Throws:
IOException
-
visit
Accepts the given visitor.
-