IType get(Class<?> javaClass)
Note: you should use this method only if you do not have an Object of class
javaClass to get the type from. If you
do have such an object, use getFromObject(java.lang.Object) instead.javaClass - the Class to convert to an intrinsic typegetFromObject(Object)IType get(IJavaClassInfo javaClassInfo)
javaClassInfo - the Class info object to convert to an intrinsic typeIType getFromObject(Object object)
object - the object to get an IType forget(Class)IType getByRelativeName(String relativeName) throws ClassNotFoundException
ClassNotFoundExceptionIType getByRelativeName(String relativeName, ITypeUsesMap typeUses) throws ClassNotFoundException
relativeName - the relative name of the typetypeUses - the map of used types to use when resolvingClassNotFoundException - if the specified name doesn't correspond to any typeIType getByFullName(String fullyQualifiedName)
fullyQualifiedName - the fully qualified name of the typeRuntimeException - if the specified name doesn't correspond to any typeIType getByFullNameIfValid(String fullyQualifiedName)
fullyQualifiedName - the fully qualified name of the typevoid refresh(ITypeRef typeRef)
void refresh(boolean bRefreshCaches)
void refresh(IModule module)
void refreshed(IResource file, String typeName, RefreshKind refreshKind)
void shutdown()
int getRefreshChecksum()
int getSingleRefreshChecksum()
IType parseType(String typeString) throws IllegalArgumentException
IllegalArgumentException - if the type string doesn't correspond to any known ITypeIType parseType(String typeString, ITypeUsesMap typeUsesMap) throws IllegalArgumentException
IllegalArgumentExceptionIType parseType(String typeString, TypeVarToTypeMap actualParamByVarName)
IType parseType(String typeString, TypeVarToTypeMap actualParamByVarName, ITypeUsesMap typeUsesMap)
ITypeLiteralExpression parseTypeExpression(String typeString, TypeVarToTypeMap actualParamByVarName, ITypeUsesMap typeUsesMap) throws ParseResultsException
ParseResultsExceptionINamespaceType getNamespace(String strFqNamespace)
Set<? extends CharSequence> getAllTypeNames()
ITypeVariableType getOrCreateTypeVariableType(String strName, IType boundingType, IType enclosingType)
IFunctionType getOrCreateFunctionType(IMethodInfo mi)
IFunctionType getOrCreateFunctionType(String strFunctionName, IType retType, IType[] paramTypes)
TypeVarToTypeMap mapTypeByVarName(IType ownersType, IType declaringType)
IType getActualType(IType type, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars)
void inferTypeVariableTypesFromGenParamTypeAndConcreteType(IType genParamType, IType argType, TypeVarToTypeMap map)
void inferTypeVariableTypesFromGenParamTypeAndConcreteType_Reverse(IType genParamType, IType argType, TypeVarToTypeMap map)
IErrorType getErrorType()
IErrorType getErrorType(String strErrantName)
IErrorType getErrorType(ParseResultsException pe)
IDefaultTypeLoader getDefaultTypeLoader()
void addTypeLoaderListenerAsWeakRef(ITypeLoaderListener listener)
Set<String> getNamespacesFromTypeNames(Set<? extends CharSequence> allTypeNames, Set<String> namespaces)
void pushTypeLoader(ITypeLoader loader)
void pushTypeLoader(IModule module, ITypeLoader loader)
void removeTypeLoader(Class<? extends ITypeLoader> loader)
void pushIncludeAll()
void popIncludeAll()
boolean isIncludeAll()
IType getCurrentCompilingType()
void pushCompilingType(IType type)
void popCompilingType()
void pushSymTableCtx(ISymbolTable ctx)
void popSymTableCtx()
ISymbolTable getSymTableCtx()
<T extends ITypeLoader> T getTypeLoader(Class<? extends T> loaderClass, IModule module)
String getNameOfParams(IType[] paramTypes, boolean bRelative, boolean bWithEnclosingType)
ISymbolTable getCompiledGosuClassSymbolTable()
List<ITypeLoader> getAllTypeLoaders()
void removeTypeLoaderListener(ITypeLoaderListener listener)
IExecutionEnvironment getExecutionEnvironment()
IExecutionEnvironment getExecutionEnvironment(IProject project)
IModule getCurrentModule()
boolean isExpandable(IType type)
void clearErrorTypes()
IGosuClassLoader getGosuClassLoader()
void dumpGosuClassLoader()
IMetaType getDefaultType()
void addShutdownListener(TypeSystemShutdownListener listener)
void pushModule(IModule gosuModule)
void popModule(IModule gosuModule)
IType replaceTypeVariableTypeParametersWithBoundingTypes(IType iType, IType type)
IGosuc makeGosucCompiler(String gosucProjectFile, ICustomParser custParser)
boolean isParameterizedWith(IType type, ITypeVariableType... typeVar)
Copyright © 2018. All rights reserved.