public class TraversingTypeVisitor extends Object implements TypeVisitor<Object,RuntimeException>
Map<String, List<Integer>>
it visits these types in the order:
MapType, StringType, ListType, IntegerType.
This visitor can be used only once and is not thread-safe.
Constructor and Description |
---|
TraversingTypeVisitor() |
Modifier and Type | Method and Description |
---|---|
Object |
visit(BinaryType binaryType)
Visits the binary base type.
|
Object |
visit(BooleanType booleanType)
Visits the boolean type.
|
Object |
visit(ClosureType closureType)
Visits the closure type.
|
Object |
visit(CollectionType collectionType)
Visits the collection type.
|
Object |
visit(DateType dateType)
Visits the date type.
|
Object |
visit(DecimalType decimalType)
Visits the decimal type.
|
Object |
visit(EnumerationBaseType enumerationType)
Visits the enumeration base type.
|
Object |
visit(EnumerationType enumerationType)
Visits the enumeration type.
|
Object |
visit(FreeType freeType)
Visits the free type.
|
Object |
visit(IntegerType integerType)
Visits the integer type.
|
Object |
visit(InterfaceType interfaceType)
Visits the interface type.
|
Object |
visit(IntersectionType intersectionType)
Visits the intersection type.
|
Object |
visit(ListType listType)
Visits the list type.
|
Object |
visit(LocalDateType type)
Visits the LocalDate type.
|
Object |
visit(MapType mapType)
Visits the map type.
|
Object |
visit(NullType nullType)
Visits the null type.
|
Object |
visit(ObjectType objectType)
Visits the object type.
|
Object |
visit(PropertyPathType propertyPathType)
Visits the property path type.
|
Object |
visit(PropertyType propertyType)
Visits the property type.
|
Object |
visit(RecordBaseType recordType)
Visits the record base type.
|
Object |
visit(RecordType recordType)
Visits the record type.
|
Object |
visit(ReferenceType referenceType)
Visits the (typed) reference type.
|
Object |
visit(SetType setType)
Visits the set type.
|
Object |
visit(StringType stringType)
Visits the string type.
|
Object |
visit(TypeType typeType)
Visits the type type.
|
Object |
visit(VoidType voidType)
Visits the void type.
|
public Object visit(BooleanType booleanType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(IntegerType integerType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(DecimalType decimalType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(DateType dateType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(LocalDateType type)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(StringType stringType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(ObjectType objectType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(NullType nullType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
nullType
- null type to be visitedpublic Object visit(CollectionType collectionType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
collectionType
- a collection type to be visitedpublic Object visit(SetType setType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
setType
- set type to be visitedpublic Object visit(ListType listType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
listType
- list type to be visitedpublic Object visit(MapType mapType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
mapType
- map type to be visitedpublic Object visit(RecordType recordType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
recordType
- record type to be visitedpublic Object visit(InterfaceType interfaceType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(IntersectionType intersectionType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
public Object visit(ClosureType closureType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
closureType
- closure type to be visitedpublic Object visit(ReferenceType referenceType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
referenceType
- reference type to be visitedpublic Object visit(FreeType freeType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
freeType
- free type to be visitedpublic Object visit(TypeType typeType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
typeType
- free type to be visitedpublic Object visit(EnumerationType enumerationType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
enumerationType
- an enumeration type to be visitedpublic Object visit(EnumerationBaseType enumerationType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
enumerationType
- an enumeration type to be visitedpublic Object visit(BinaryType binaryType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
binaryType
- a binary type to be visitedpublic Object visit(RecordBaseType recordType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
recordType
- a record type to be visitedpublic Object visit(PropertyPathType propertyPathType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
propertyPathType
- a property path type to be visitedpublic Object visit(PropertyType propertyType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
propertyType
- a property type to be visitedpublic Object visit(VoidType voidType)
TypeVisitor
visit
in interface TypeVisitor<Object,RuntimeException>
voidType
- a void type to be visitedCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.