Class Type
java.lang.Object
de.haumacher.msgbuf.data.AbstractDataObject
de.haumacher.msgbuf.generator.ast.Type
- All Implemented Interfaces:
DataObject,ReflectiveDataObject,Observable
- Direct Known Subclasses:
CustomType,MapType,PrimitiveType
Base class for possible
Field types.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidprotected final voidabstract Type.TypeKindkind()The type code of this instance.static TypereadType(JsonReader in) Reads a new instance from the given reader.abstract <R,A> R visit(Type.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
-
Type
protected Type()Creates aTypeinstance.
-
-
Method Details
-
kind
The type code of this instance. -
registerListener
- Specified by:
registerListenerin interfaceObservable
-
internalRegisterListener
-
unregisterListener
- Specified by:
unregisterListenerin interfaceObservable
-
internalUnregisterListener
-
readType
Reads a new instance from the given reader.- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceDataObject- Throws:
IOException
-
visit
Accepts the given visitor.
-