java.lang.Object
de.grogra.xl.compiler.scope.Scope
de.grogra.xl.compiler.scope.ClassPath
- All Implemented Interfaces:
TypeLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclassForName(String name) createImports(String[] packageImports, Class[] memberTypeImports, Class[] singleTypeImports, Class[] staticImports) voidfindMembers(String name, int flags, Members list) Finds all members which are declared in this scope or enclosing scopes.static ClassPathgetPackage(String name, boolean force) typeForClass(Class cls) typeForName(String name) typeForNameOrNull(String name) typeForType(Type cls) Methods inherited from class de.grogra.xl.compiler.scope.Scope
dump, encloses, getCompiler, getDeclaredEntity, getDeclaredType, getDefaultModuleSuperclass, getEnclosingScope, getExtension, getInstantiationProducerType, getOwnerOf, getPackage, getPropertyModel, getQueryModel, getRoot, insert, isD2FImplicit, isEnabledConversion, isShadowedBy, isStatic
-
Constructor Details
-
ClassPath
-
-
Method Details
-
get
-
getPackage
-
typeForNameOrNull
-
typeForClass
- Throws:
ClassNotFoundException
-
typeForType
- Throws:
ClassNotFoundException
-
typeForName
- Specified by:
typeForNamein interfaceTypeLoader- Throws:
ClassNotFoundException
-
classForName
- Specified by:
classForNamein interfaceTypeLoader- Throws:
ClassNotFoundException
-
getClassLoader
- Specified by:
getClassLoaderin interfaceTypeLoader
-
findMembers
Description copied from class:ScopeFinds all members which are declared in this scope or enclosing scopes. This method should be overwritten by subclasses; an invocation ofsuper.findMembershas to be included in order to look for members in enclosing scopes. Theflagsare a combination of the bit masks defined inMembers, they are used to restrict the range of possible members.- Overrides:
findMembersin classScope- Parameters:
name- simple name of the members to findflags- combination of masks defined inMemberslist- found members are added to this list
-
createImports
public Scope createImports(String[] packageImports, Class[] memberTypeImports, Class[] singleTypeImports, Class[] staticImports) throws ClassNotFoundException - Throws:
ClassNotFoundException
-