java.lang.Object
de.grogra.xl.compiler.scope.Scope
de.grogra.xl.compiler.scope.BlockScope
de.grogra.xl.compiler.scope.InstanceScope
- All Implemented Interfaces:
ExpressionFactory
- Direct Known Subclasses:
ProduceScope
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateExpression
(Scope scope, antlr.collections.AST pos) void
findMembers
(String name, int flags, Members list) Finds all members which are declared in this scope or enclosing scopes.getOwnerOf
(Member m) Returns the type of the innermost type declaration of whichm
is a member.getType()
void
setInstance
(ExpressionFactory instance) toString()
Methods inherited from class de.grogra.xl.compiler.scope.BlockScope
addExpression, createThis, declareLocal, declareLocalClass, findClass, findLocal, getBlock, getDeclaredClassCount, getLocals, getMethodScope, getProduceScope, getTypeScope, getUniqueName, nextUniqueId, prependExpression, receiveLocals, setBlock, setDeclaredClassCount, setScopeForLocals, setUseNewScopeForQueries, useNewScopeForQueries
Methods inherited from class de.grogra.xl.compiler.scope.Scope
dump, encloses, getCompiler, getDeclaredEntity, getDeclaredType, getDefaultModuleSuperclass, getEnclosingScope, getExtension, getInstantiationProducerType, getPackage, getPropertyModel, getQueryModel, getRoot, insert, isD2FImplicit, isEnabledConversion, isShadowedBy, isStatic
-
Constructor Details
-
InstanceScope
-
-
Method Details
-
getInstance
-
getType
- Specified by:
getType
in interfaceExpressionFactory
-
createExpression
- Specified by:
createExpression
in interfaceExpressionFactory
-
setInstance
-
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 classBlockScope
- Parameters:
name
- simple name of the members to findflags
- combination of masks defined inMembers
list
- found members are added to this list
-
getOwnerOf
Description copied from class:Scope
Returns the type of the innermost type declaration of whichm
is a member.- Overrides:
getOwnerOf
in classScope
- Parameters:
m
- a member- Returns:
- innermost type of which
m
is a member
-
toString
-