Class Type
- java.lang.Object
-
- de.haumacher.msgbuf.data.AbstractDataObject
-
- de.haumacher.msgbuf.generator.ast.Type
-
- All Implemented Interfaces:
de.haumacher.msgbuf.data.DataObject,de.haumacher.msgbuf.data.ReflectiveDataObject,de.haumacher.msgbuf.observer.Observable
- Direct Known Subclasses:
CustomType,MapType,PrimitiveType
public abstract class Type extends de.haumacher.msgbuf.data.AbstractDataObject implements de.haumacher.msgbuf.observer.ObservableBase class for possibleFieldtypes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classType.TypeKindType codes for theTypehierarchy.static interfaceType.Visitor<R,A>Visitor interface for theTypehierarchy.
-
Field Summary
Fields Modifier and Type Field Description protected de.haumacher.msgbuf.observer.Listener_listener
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidinternalRegisterListener(de.haumacher.msgbuf.observer.Listener l)protected voidinternalUnregisterListener(de.haumacher.msgbuf.observer.Listener l)abstract Type.TypeKindkind()The type code of this instance.static TypereadType(de.haumacher.msgbuf.json.JsonReader in)Reads a new instance from the given reader.TyperegisterListener(de.haumacher.msgbuf.observer.Listener l)TypeunregisterListener(de.haumacher.msgbuf.observer.Listener l)abstract <R,A>
Rvisit(Type.Visitor<R,A> v, A arg)Accepts the given visitor.voidwriteTo(de.haumacher.msgbuf.json.JsonWriter out)-
Methods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readField, readFields, toString, writeContent, writeFields
-
-
-
-
Constructor Detail
-
Type
protected Type()
Creates aTypeinstance.
-
-
Method Detail
-
kind
public abstract Type.TypeKind kind()
The type code of this instance.
-
registerListener
public Type registerListener(de.haumacher.msgbuf.observer.Listener l)
- Specified by:
registerListenerin interfacede.haumacher.msgbuf.observer.Observable
-
internalRegisterListener
protected final void internalRegisterListener(de.haumacher.msgbuf.observer.Listener l)
-
unregisterListener
public Type unregisterListener(de.haumacher.msgbuf.observer.Listener l)
- Specified by:
unregisterListenerin interfacede.haumacher.msgbuf.observer.Observable
-
internalUnregisterListener
protected final void internalUnregisterListener(de.haumacher.msgbuf.observer.Listener l)
-
readType
public static Type readType(de.haumacher.msgbuf.json.JsonReader in) throws IOException
Reads a new instance from the given reader.- Throws:
IOException
-
writeTo
public final void writeTo(de.haumacher.msgbuf.json.JsonWriter out) throws IOException- Specified by:
writeToin interfacede.haumacher.msgbuf.data.DataObject- Throws:
IOException
-
visit
public abstract <R,A> R visit(Type.Visitor<R,A> v, A arg)
Accepts the given visitor.
-
-