Class PrimitiveType
java.lang.Object
de.haumacher.msgbuf.data.AbstractDataObject
de.haumacher.msgbuf.generator.ast.Type
de.haumacher.msgbuf.generator.ast.PrimitiveType
- All Implemented Interfaces:
DataObject,ReflectiveDataObject,Observable
A primitive built-in
Type.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.haumacher.msgbuf.generator.ast.Type
Type.TypeKind, Type.Visitor<R,A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringIdentifier for thePrimitiveTypetype in JSON format. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrimitiveTypecreate()Creates aPrimitiveTypeinstance.final PrimitiveType.KindgetKind()The type kind.protected final voidInternal setter forgetKind()without chain call utility.jsonType()kind()The type code of this instance.protected voidreadField(JsonReader in, String field) static PrimitiveTypeReads a new instance from the given reader.voidsetKind(PrimitiveType.Kind value) <R,A> R visit(Type.Visitor<R, A> v, A arg) Accepts the given visitor.protected voidwriteFields(JsonWriter out) Methods inherited from class de.haumacher.msgbuf.generator.ast.Type
internalRegisterListener, internalUnregisterListener, readType, registerListener, unregisterListener, writeToMethods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContent
-
Field Details
-
PRIMITIVE_TYPE__TYPE
Identifier for thePrimitiveTypetype in JSON format.- See Also:
-
KIND__PROP
- See Also:
-
-
Constructor Details
-
PrimitiveType
protected PrimitiveType()Creates aPrimitiveTypeinstance.- See Also:
-
-
Method Details
-
create
Creates aPrimitiveTypeinstance. -
kind
Description copied from class:TypeThe type code of this instance. -
getKind
The type kind. -
setKind
- See Also:
-
internalSetKind
Internal setter forgetKind()without chain call utility. -
jsonType
-
properties
-
get
-
set
-
readPrimitiveType
Reads a new instance from the given reader.- Throws:
IOException
-
writeFields
- Overrides:
writeFieldsin classAbstractDataObject- Throws:
IOException
-
readField
- Overrides:
readFieldin classAbstractDataObject- Throws:
IOException
-
visit
Description copied from class:TypeAccepts the given visitor.
-