public enum TypeComparer extends java.lang.Enum<TypeComparer> implements Type.Visitor<Type,TypeComparer.Result>
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeComparer.Result |
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(Type a,
Type b) |
static ClassDecl |
getCommonSuperClass(ClassDecl a,
ClassDecl b) |
static ClassDecl |
getCommonSuperClass(java.lang.Iterable<? extends ClassDecl> classDecls) |
static java.util.Set<ClassDecl> |
getCommonSuperClasses(ClassDecl a,
ClassDecl b) |
static java.util.Set<ClassDecl> |
getCommonSuperClasses(java.lang.Iterable<? extends ClassDecl> classDecls) |
static Type |
getCommonSuperType(Type a,
Type b) |
static boolean |
isSuperClass(ClassDecl a,
ClassDecl 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) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfvisitpublic static final TypeComparer INSTANCE
public static TypeComparer[] values()
for (TypeComparer c : TypeComparer.values()) System.out.println(c);
public static TypeComparer 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 static java.util.Set<ClassDecl> getCommonSuperClasses(java.lang.Iterable<? extends ClassDecl> classDecls)
public static ClassDecl getCommonSuperClass(java.lang.Iterable<? extends ClassDecl> classDecls)
public static java.util.Set<ClassDecl> getCommonSuperClasses(ClassDecl a, ClassDecl b)
public TypeComparer.Result visit(UnresolvedType unresolvedType, Type par)
visit in interface Type.Visitor<Type,TypeComparer.Result>visit in interface UnresolvedType.Visitor<Type,TypeComparer.Result>public TypeComparer.Result visit(PrimitiveType primitiveType, Type par)
visit in interface Type.Visitor<Type,TypeComparer.Result>public TypeComparer.Result visit(ClassType classType, Type par)
visit in interface ClassType.Visitor<Type,TypeComparer.Result>visit in interface Type.Visitor<Type,TypeComparer.Result>public TypeComparer.Result visit(ListType listType, Type par)
visit in interface ListType.Visitor<Type,TypeComparer.Result>visit in interface Type.Visitor<Type,TypeComparer.Result>