Package org.fulib.scenarios.visitor
Enum TypeComparer
- java.lang.Object
-
- java.lang.Enum<TypeComparer>
-
- org.fulib.scenarios.visitor.TypeComparer
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypeComparer>
,ClassType.Visitor<Type,TypeComparer.Result>
,ListType.Visitor<Type,TypeComparer.Result>
,Type.Visitor<Type,TypeComparer.Result>
,UnresolvedType.Visitor<Type,TypeComparer.Result>
public enum TypeComparer extends java.lang.Enum<TypeComparer> implements Type.Visitor<Type,TypeComparer.Result>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypeComparer.Result
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
equals(Type a, Type b)
static boolean
isSuperType(Type a, Type b)
static TypeComparer
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypeComparer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.TypeComparer.Result
visit(ClassType classType, Type par)
TypeComparer.Result
visit(ListType listType, Type par)
TypeComparer.Result
visit(PrimitiveType primitiveType, Type par)
TypeComparer.Result
visit(UnresolvedType unresolvedType, Type par)
-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.fulib.scenarios.ast.type.Type.Visitor
visit
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeComparer INSTANCE
-
-
Method Detail
-
values
public static TypeComparer[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeComparer c : TypeComparer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeComparer valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
visit
public TypeComparer.Result visit(UnresolvedType unresolvedType, Type par)
- Specified by:
visit
in interfaceType.Visitor<Type,TypeComparer.Result>
- Specified by:
visit
in interfaceUnresolvedType.Visitor<Type,TypeComparer.Result>
-
visit
public TypeComparer.Result visit(PrimitiveType primitiveType, Type par)
- Specified by:
visit
in interfaceType.Visitor<Type,TypeComparer.Result>
-
visit
public TypeComparer.Result visit(ClassType classType, Type par)
- Specified by:
visit
in interfaceClassType.Visitor<Type,TypeComparer.Result>
- Specified by:
visit
in interfaceType.Visitor<Type,TypeComparer.Result>
-
visit
public TypeComparer.Result visit(ListType listType, Type par)
- Specified by:
visit
in interfaceListType.Visitor<Type,TypeComparer.Result>
- Specified by:
visit
in interfaceType.Visitor<Type,TypeComparer.Result>
-
-