public class TypeLord extends Object
| Constructor and Description |
|---|
TypeLord() |
public static Set<IType> getAllClassesInClassHierarchyAsIntrinsicTypes(IJavaClassInfo cls)
public static Set<IType> getAllClassesInClassHierarchyAsIntrinsicTypes(IType type)
public static boolean enclosingTypeInstanceInScope(IType type, IGosuClassInternal inner)
public static IType getActualType(Type type, TypeVarToTypeMap actualParamByVarName)
public static IType getActualType(Type type, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars)
public static IType getActualType(Type type, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars, LinkedHashSet<Type> recursiveTypes)
public static IType getActualType(IAsmType type, TypeVarToTypeMap actualParamByVarName)
public static IType getActualType(IAsmType type, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars, LinkedHashSet<IAsmType> recursiveTypes)
public static IType getActualType(IType type, TypeVarToTypeMap actualParamByVarName)
public static IType getActualType(IType type, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars)
public static IType getActualType(IType type, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars, Set<IType> visited)
public static boolean isParameterizedWith(IType type, TypeVariableType typeVar)
public static IType parseType(String strParameterizedTypeName, TypeVarToTypeMap actualParamByVarName)
public static IType parseType(String strParameterizedTypeName, TypeVarToTypeMap actualParamByVarName, ITypeUsesMap typeUsesMap)
public static ITypeLiteralExpression parseTypeLiteral(String strParameterizedTypeName, TypeVarToTypeMap actualParamByVarName, ITypeUsesMap typeUsesMap) throws ParseResultsException
ParseResultsExceptionpublic static TypeVarToTypeMap mapTypeByVarName(IType ownersType, IType declaringType)
public static IType makeParameteredType(IType genType, TypeVarToTypeMap inferenceMap)
public static String getNameWithQualifiedTypeVariables(IType type, boolean includeModules)
public static String getNameWithBoundQualifiedTypeVariables(IType type, boolean includeModules)
public static String getNameOfParams(IType[] paramTypes, boolean bRelative, boolean bWithEnclosingType)
public static String getNameOfParams(IType[] paramTypes, boolean bRelative, boolean bWithEnclosingType, boolean bIncludeModule)
public static boolean isDelegatableInterface(IType declaringType, IType iface)
public static IType findParameterizedStructureType(IType structureType, IType from)
public static IType findParameterizedType(IType sourceType, IType rawGenericType)
sourceType - The type to search in.rawGenericType - The raw generic type of the parameterized type to
search for e.g., List is the raw generic type of List<String>.public static IType findParameterizedType(IType sourceType, IType rawGenericType, boolean bForAssignability)
public static IType findParameterizedType_Reverse(IType sourceType, IType targetType)
public static IType findParameterizedTypeInHierarchy(IType sourceType, IType rawGenericType)
public static void addAllClassesInClassHierarchy(Class entityClass, Set<Class> set)
public static void addAllClassesInClassHierarchy(IType type, Set<IType> set)
public static void addAllClassesInClassHierarchy(IType type, Set<IType> set, boolean bForce)
public static <E extends IType> E getPureGenericType(E type)
public static IType deriveParameterizedTypeFromContext(IType type, IType contextType)
public static IType replaceTypeVariableTypeParametersWithBoundingTypes(IType type)
public static IType replaceTypeVariableTypeParametersWithBoundingTypes(IType type, IType enclType)
public static IType replaceRawGenericTypesWithDefaultParameterizedTypes(IType type)
public static IType getDefaultParameterizedTypeWithTypeVars(IType type)
public static IType getDefaultParameterizedTypeWithTypeVars(IType type, TypeVarToTypeMap map)
public static IType getDefaultParameterizedTypeWithTypeVars(IType type, TypeVarToTypeMap map, Set<IType> visited)
public static boolean isRecursiveTypeFromBase(IType rootType)
public static boolean isRecursiveType(IType declaringClass)
public static boolean areGenericOrParameterizedTypesAssignable(IType to, IType from)
public static Set<String> getNamespacesFromTypeNames(Set<? extends CharSequence> typeNames, Set<String> namespaces)
public static IType getLeastUpperBoundForPrimitiveTypes(IType t0, IType t1)
public static boolean isRecursiveType(IJavaType javaType)
public static boolean isRecursiveType(ITypeVariableType subject, IType... types)
public static IJavaClassInfo getOuterMostEnclosingClass(IJavaClassInfo innerClass)
public static boolean isParameterizedType(IType type)
public static boolean isEvalProgram(IType type)
public static void addReferencedTypeVarsThatAreNotInMap(IType type, TypeVarToTypeMap map)
public static boolean hasTypeVariable(IType type)
public static List<ITypeVariableType> getTypeVariables(IType type)
public static boolean getTypeVariables(IType type, java.util.function.Predicate<ITypeVariableType> cb)
public static boolean isExpandable(IType type)
public static IType getExpandableComponentType(IType type, boolean bCore)
public static void inferTypeVariableTypesFromGenParamTypeAndConcreteType(IType genParamType, IType argType, TypeVarToTypeMap inferenceMap)
public static void inferTypeVariableTypesFromGenParamTypeAndConcreteType_Reverse(IType genParamType, IType argType, TypeVarToTypeMap inferenceMap)
public static void inferTypeVariableTypesFromGenParamTypeAndConcreteType(IType genParamType, IType argType, TypeVarToTypeMap inferenceMap, HashSet<ITypeVariableType> inferredInCallStack, boolean bReverse)
public static IType getBoxedTypeFromPrimitiveType(IType primitiveType)
public static IType boundTypes(IType type, List<IType> typesToBound, boolean bKeepTypeVars)
Copyright © 2017. All rights reserved.