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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExpression(Scope scope, antlr.collections.AST pos) voidfindMembers(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 whichmis a member.getType()voidsetInstance(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, useNewScopeForQueriesMethods 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:
getTypein interfaceExpressionFactory
-
createExpression
- Specified by:
createExpressionin interfaceExpressionFactory
-
setInstance
-
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 classBlockScope- Parameters:
name- simple name of the members to findflags- combination of masks defined inMemberslist- found members are added to this list
-
getOwnerOf
Description copied from class:ScopeReturns the type of the innermost type declaration of whichmis a member.- Overrides:
getOwnerOfin classScope- Parameters:
m- a member- Returns:
- innermost type of which
mis a member
-
toString
-