java.lang.Object
de.grogra.xl.compiler.scope.Scope
de.grogra.xl.compiler.scope.ClassPath
- All Implemented Interfaces:
TypeLoader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclassForName
(String name) createImports
(String[] packageImports, Class[] memberTypeImports, Class[] singleTypeImports, Class[] staticImports) void
findMembers
(String name, int flags, Members list) Finds all members which are declared in this scope or enclosing scopes.static ClassPath
getPackage
(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:
typeForName
in interfaceTypeLoader
- Throws:
ClassNotFoundException
-
classForName
- Specified by:
classForName
in interfaceTypeLoader
- Throws:
ClassNotFoundException
-
getClassLoader
- Specified by:
getClassLoader
in interfaceTypeLoader
-
findMembers
Description copied from class:Scope
Finds all members which are declared in this scope or enclosing scopes. This method should be overwritten by subclasses; an invocation ofsuper.findMembers
has to be included in order to look for members in enclosing scopes. Theflags
are a combination of the bit masks defined inMembers
, they are used to restrict the range of possible members.- Overrides:
findMembers
in classScope
- Parameters:
name
- simple name of the members to findflags
- combination of masks defined inMembers
list
- found members are added to this list
-
createImports
public Scope createImports(String[] packageImports, Class[] memberTypeImports, Class[] singleTypeImports, Class[] staticImports) throws ClassNotFoundException - Throws:
ClassNotFoundException
-