java.lang.Object
de.grogra.xl.compiler.scope.Scope
de.grogra.xl.compiler.scope.TypeScope
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateMethodScope(long modifiers) voidfindMembers(String name, int flags, Members list) Finds all members which are declared in this scope or enclosing scopes.static TypeScopeantlr.collections.ASTgetAST()antlr.collections.ASTgetASTOfDeclaration(Field field) Returns the type of the innermost enclosing type declaration.getFieldForEnclosingLocal(Local local) longstatic TypeScopegetNonlocal(Scope scope) booleanbooleanbooleanisStatic()Checks if this scope appears in a static context.intvoidsetASTOfDeclaration(Field field, antlr.collections.AST ast) voidtoString()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:
getCompilerin classScope
-
createMethodScope
-
getModifiersEx
public long getModifiersEx() -
getAssertionsDisabledField
-
hasAssertionsDisabledField
public boolean hasAssertionsDisabledField() -
getFieldForEnclosingLocal
-
getEnclosingLocals
-
getConstructorScopes
-
getAllContainedMethodScopes
-
setInstantiatorModule
public void setInstantiatorModule() -
getDeclaredType
Description copied from class:ScopeReturns the type of the innermost enclosing type declaration.- Overrides:
getDeclaredTypein classScope- Returns:
- type of innermost enclosing type declaration
-
getDeclaredEntity
- Overrides:
getDeclaredEntityin classScope
-
isStatic
public boolean isStatic()Description copied from class:ScopeChecks 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: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
-
toString
-