java.lang.Object
de.grogra.xl.compiler.scope.Scope
de.grogra.xl.compiler.scope.TypeScope
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createMethodScope
(long modifiers) void
findMembers
(String name, int flags, Members list) Finds all members which are declared in this scope or enclosing scopes.static TypeScope
antlr.collections.AST
getAST()
antlr.collections.AST
getASTOfDeclaration
(Field field) Returns the type of the innermost enclosing type declaration.getFieldForEnclosingLocal
(Local local) long
static TypeScope
getNonlocal
(Scope scope) boolean
boolean
boolean
isStatic()
Checks if this scope appears in a static context.int
void
setASTOfDeclaration
(Field field, antlr.collections.AST ast) void
toString()
Methods inherited from class de.grogra.xl.compiler.scope.Scope
dump, encloses, getDefaultModuleSuperclass, getEnclosingScope, getExtension, getInstantiationProducerType, getOwnerOf, getPackage, getPropertyModel, getQueryModel, getRoot, insert, isD2FImplicit, isEnabledConversion, isShadowedBy
-
Field Details
-
instanceInit
-
staticInit
-
enclosingInstance
-
-
Constructor Details
-
TypeScope
-
-
Method Details
-
nextLocalClassId
public int nextLocalClassId() -
get
-
getNonlocal
-
getAST
public antlr.collections.AST getAST() -
getCompiler
- Overrides:
getCompiler
in classScope
-
createMethodScope
-
getModifiersEx
public long getModifiersEx() -
getAssertionsDisabledField
-
hasAssertionsDisabledField
public boolean hasAssertionsDisabledField() -
getFieldForEnclosingLocal
-
getEnclosingLocals
-
getConstructorScopes
-
getAllContainedMethodScopes
-
setInstantiatorModule
public void setInstantiatorModule() -
getDeclaredType
Description copied from class:Scope
Returns the type of the innermost enclosing type declaration.- Overrides:
getDeclaredType
in classScope
- Returns:
- type of innermost enclosing type declaration
-
getDeclaredEntity
- Overrides:
getDeclaredEntity
in classScope
-
isStatic
public boolean isStatic()Description copied from class:Scope
Checks if this scope appears in a static context. This is defined by the Java Language Specification. -
isNonlocal
public boolean isNonlocal() -
addIncompleteConstructorInvocation
-
getIncompleteConstructorInvocations
-
setASTOfDeclaration
-
getASTOfDeclaration
-
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
-
toString
-