Class GlobalScope
java.lang.Object
io.github.potjerodekool.nabu.resolve.scope.GlobalScope
- All Implemented Interfaces:
Scope
Global scope.
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalScope(CompilationUnit compilationUnit, CompilerContext compilerContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidresolveType(String name) voidsetPackageElement(PackageElement packageElement) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.potjerodekool.nabu.resolve.scope.Scope
elements, getCurrentClass, getCurrentElement, getCurrentMethod, getParent, locals, resolve, resolveByName
-
Constructor Details
-
GlobalScope
-
-
Method Details
-
getGlobalScope
- Specified by:
getGlobalScopein interfaceScope- Returns:
- Returns the global scope or null if not found.
-
define
-
resolve
-
getCompilationUnit
- Specified by:
getCompilationUnitin interfaceScope- Returns:
- Returns the compilation unit of the scope or null if not found.
-
getCompilerContext
-
getPackageElement
- Specified by:
getPackageElementin interfaceScope- Returns:
- Returns the package element of this scope or null.
-
setPackageElement
- Specified by:
setPackageElementin interfaceScope- Parameters:
packageElement- Package element to set on this scope.
-
findModuleElement
- Specified by:
findModuleElementin interfaceScope- Returns:
- Returns the module element of this scope or null.
-
resolveType
- Specified by:
resolveTypein interfaceScope- Parameters:
name- An element name.- Returns:
- Return the resolved type or null if not found.
-