T
- return typeE
- the exception typepublic class SimpleTypeVisitor<T,E extends java.lang.Throwable> extends java.lang.Object implements TypeVisitor<T,E>
visitType(Type)
for each type.Constructor and Description |
---|
SimpleTypeVisitor() |
Modifier and Type | Method and Description |
---|---|
T |
visit(BinaryType binaryType)
Visits the binary base type.
|
T |
visit(BooleanType booleanType)
Visits the boolean type.
|
T |
visit(ClosureType closureType)
Visits the closure type.
|
T |
visit(CollectionType collectionType)
Visits the collection type.
|
T |
visit(DateType dateType)
Visits the date type.
|
T |
visit(DecimalType decimalType)
Visits the decimal type.
|
T |
visit(EnumerationBaseType enumerationType)
Visits the enumeration base type.
|
T |
visit(EnumerationType enumerationType)
Visits the enumeration type.
|
T |
visit(FreeType freeType)
Visits the free type.
|
T |
visit(IntegerType integerType)
Visits the integer type.
|
T |
visit(InterfaceType interfaceType)
Visits the interface type.
|
T |
visit(IntersectionType intersectionType)
Visits the intersection type.
|
T |
visit(ListType listType)
Visits the list type.
|
T |
visit(LocalDateTimeType type)
Visits the LocalDateTime type.
|
T |
visit(LocalDateType type)
Visits the LocalDate type.
|
T |
visit(MapType mapType)
Visits the map type.
|
T |
visit(NullType nullType)
Visits the null type.
|
T |
visit(ObjectType objectType)
Visits the object type.
|
T |
visit(PropertyPathType propertyPathType)
Visits the property path type.
|
T |
visit(PropertyType propertyType)
Visits the property type.
|
T |
visit(RecordBaseType recordType)
Visits the record base type.
|
T |
visit(RecordType recordType)
Visits the record type.
|
T |
visit(ReferenceType referenceType)
Visits the (typed) reference type.
|
T |
visit(SetType setType)
Visits the set type.
|
T |
visit(StringType stringType)
Visits the string type.
|
T |
visit(TypeType typeType)
Visits the type type.
|
T |
visit(VoidType voidType)
Visits the void type.
|
T |
visitType(Type type)
This method is called from each individual visit method for each type.
|
public T visitType(Type type) throws E extends java.lang.Throwable
type
- E
E extends java.lang.Throwable
public T visit(BooleanType booleanType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(IntegerType integerType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(DecimalType decimalType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(DateType dateType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(LocalDateType type) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(LocalDateTimeType type) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(StringType stringType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(ObjectType objectType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(NullType nullType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
nullType
- null type to be visitedE
E extends java.lang.Throwable
public T visit(SetType setType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
setType
- set type to be visitedE
E extends java.lang.Throwable
public T visit(ListType listType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
listType
- list type to be visitedE
E extends java.lang.Throwable
public T visit(MapType mapType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
mapType
- map type to be visitedE
E extends java.lang.Throwable
public T visit(RecordType recordType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
recordType
- record type to be visitedE
E extends java.lang.Throwable
public T visit(InterfaceType interfaceType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(IntersectionType intersectionType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
E
E extends java.lang.Throwable
public T visit(ClosureType closureType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
closureType
- closure type to be visitedE
E extends java.lang.Throwable
public T visit(ReferenceType referenceType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
referenceType
- reference type to be visitedE
E extends java.lang.Throwable
public T visit(TypeType typeType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
typeType
- free type to be visitedE
E extends java.lang.Throwable
public T visit(FreeType freeType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
freeType
- free type to be visitedE
E extends java.lang.Throwable
public T visit(CollectionType collectionType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
collectionType
- a collection type to be visitedE
E extends java.lang.Throwable
public T visit(EnumerationType enumerationType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
enumerationType
- an enumeration type to be visitedE
E extends java.lang.Throwable
public T visit(EnumerationBaseType enumerationType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
enumerationType
- an enumeration type to be visitedE
E extends java.lang.Throwable
public T visit(BinaryType binaryType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
binaryType
- a binary type to be visitedE
E extends java.lang.Throwable
public T visit(RecordBaseType recordType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
recordType
- a record type to be visitedE
E extends java.lang.Throwable
public T visit(PropertyPathType propertyPathType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
propertyPathType
- a property path type to be visitedE
E extends java.lang.Throwable
public T visit(PropertyType propertyType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
propertyType
- a property type to be visitedE
E extends java.lang.Throwable
public T visit(VoidType voidType) throws E extends java.lang.Throwable
TypeVisitor
visit
in interface TypeVisitor<T,E extends java.lang.Throwable>
voidType
- a void type to be visitedE
E extends java.lang.Throwable
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.