java.lang.Object
de.grogra.suggest.scope.BaseScope
de.grogra.suggest.scope.LocalScopeSymbol
de.grogra.suggest.scope.ProductionStatementScope
- All Implemented Interfaces:
Member
,Scope
,Symbol
,SymbolWithModifiers
A scope for the script blocks in xl rules
-
Field Summary
Fields inherited from class de.grogra.suggest.scope.LocalScopeSymbol
modifiers
Fields inherited from class de.grogra.suggest.scope.BaseScope
enclosingScope, nestedScopesNotSymbols, symbols
Fields inherited from interface de.grogra.suggest.scope.Member
ABSTRACT, ALL_VISIBILITY, CLASS, COMPLETE_NAME, CONSTRUCTOR, DECLARED, FIELD, FINAL, INTERFACE, JAVA_TYPE, METHOD, NATIVE, NEW, NODE, PACKAGE, PRIVATE, PROTECTED, PUBLIC, SCOPE, STATIC, STATIC_ONLY, STRICT, SUPER, SYNCHRONIZED, TRANSIENT, VOLATILE, XL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Often scopes have names like function or class names.Collection<? extends Symbol>
getSymbols
(int flags) Production statement includes their nested scope symbols because scripts can be defined in productions and their declared variables should be available from any following production statements.Methods inherited from class de.grogra.suggest.scope.LocalScopeSymbol
addModifier, getInsertionOrderNumber, getModifiers, getScope, setInsertionOrderNumber, setScope
Methods inherited from class de.grogra.suggest.scope.BaseScope
define, define, getAllNestedScopedSymbols, getAllSymbols, getEnclosingPathToRoot, getEnclosingScope, getEnclosingScopeOfType, getMembers, getNestedScopedSymbols, getNestedScopes, getNumberOfSymbols, getOuterMostEnclosingScope, getSymbol, getSymbolNames, nest, resolve, resolveFirst, setEnclosingScope, toQualifierString, toScopeStackString, toString, toTestString, toTestString
-
Constructor Details
-
ProductionStatementScope
-
-
Method Details
-
getName
Description copied from interface:Scope
Often scopes have names like function or class names. For unnamed scopes like code blocks, you can just return "local" or something. -
getSymbols
Production statement includes their nested scope symbols because scripts can be defined in productions and their declared variables should be available from any following production statements. The productions statements are enclosed one after another to push the variable they declare available only for the following ones. E.g. xx ==> {int i;} F F {int j;} M M ; The F "see" the i, the M see the i and j.- Specified by:
getSymbols
in interfaceScope
- Overrides:
getSymbols
in classBaseScope
-