public enum TypeResolver extends java.lang.Enum<TypeResolver> implements Type.Visitor<Scope,Type>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static TypeResolver |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Type |
visit(ClassType classType,
Scope par) |
Type |
visit(ListType listType,
Scope par) |
Type |
visit(PrimitiveType primitiveType,
Scope par) |
Type |
visit(UnresolvedType unresolvedType,
Scope par) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfvisitpublic static final TypeResolver INSTANCE
public static TypeResolver[] values()
for (TypeResolver c : TypeResolver.values()) System.out.println(c);
public static TypeResolver valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Type visit(UnresolvedType unresolvedType, Scope par)
visit in interface Type.Visitor<Scope,Type>visit in interface UnresolvedType.Visitor<Scope,Type>public Type visit(PrimitiveType primitiveType, Scope par)
visit in interface Type.Visitor<Scope,Type>public Type visit(ClassType classType, Scope par)
visit in interface ClassType.Visitor<Scope,Type>visit in interface Type.Visitor<Scope,Type>