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 classTypeComparer.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 booleanequals(Type a, Type b)static booleanisSuperType(Type a, Type b)static TypeComparervalueOf(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.Resultvisit(ClassType classType, Type par)TypeComparer.Resultvisit(ListType listType, Type par)TypeComparer.Resultvisit(PrimitiveType primitiveType, Type par)TypeComparer.Resultvisit(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:
visitin interfaceType.Visitor<Type,TypeComparer.Result>- Specified by:
visitin interfaceUnresolvedType.Visitor<Type,TypeComparer.Result>
-
visit
public TypeComparer.Result visit(PrimitiveType primitiveType, Type par)
- Specified by:
visitin interfaceType.Visitor<Type,TypeComparer.Result>
-
visit
public TypeComparer.Result visit(ClassType classType, Type par)
- Specified by:
visitin interfaceClassType.Visitor<Type,TypeComparer.Result>- Specified by:
visitin interfaceType.Visitor<Type,TypeComparer.Result>
-
visit
public TypeComparer.Result visit(ListType listType, Type par)
- Specified by:
visitin interfaceListType.Visitor<Type,TypeComparer.Result>- Specified by:
visitin interfaceType.Visitor<Type,TypeComparer.Result>
-
-