Package gw.lang.parser
Class StandardScope<K extends CharSequence,V extends ISymbol>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
gw.lang.parser.StandardScope<K,V>
- All Implemented Interfaces:
IScope<K,
,V> Serializable
,Cloneable
,Map<K,
V>
- Direct Known Subclasses:
CommonSymbolsScope
public class StandardScope<K extends CharSequence,V extends ISymbol>
extends HashMap<K,V>
implements IScope<K,V>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionStandardScope
(int iSize) StandardScope
(IActivationContext context) StandardScope
(IActivationContext context, int iSize) protected
StandardScope
(StandardScope copy) -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
_activationContext
-
_csr
private int _csr
-
-
Constructor Details
-
StandardScope
public StandardScope() -
StandardScope
-
StandardScope
public StandardScope(int iSize) -
StandardScope
-
StandardScope
-
-
Method Details
-
copy
Description copied from interface:IScope
Shallow copy this scope -
getActivationCtx
Description copied from interface:IScope
Get the activation record context. This can be any object representing the activation record e.g., a function symbol, a rule set context, whatever delimits a call boundary.- Specified by:
getActivationCtx
in interfaceIScope<K extends CharSequence,
V extends ISymbol> - Returns:
- The activation context.
-
countSymbols
public int countSymbols()Description copied from interface:IScope
visit all symbols in this Scope,- Specified by:
countSymbols
in interfaceIScope<K extends CharSequence,
V extends ISymbol> - Returns:
- true if the visitor want to continue visitiong other symbol/scope, false otherwise.
-
getCSR
public int getCSR() -
setCSR
public void setCSR(int csr)
-