public abstract class AbstractStaticScope<T> extends Object implements StaticTypedScope<T>
| Constructor and Description |
|---|
AbstractStaticScope() |
| Modifier and Type | Method and Description |
|---|---|
StaticTypedSlot<T> |
getOwnSlot(String name)
Like
getSlot but does not recurse into parent scopes. |
StaticTypedScope<T> |
getParentScope()
Returns the scope enclosing this one or null if none.
|
Node |
getRootNode()
Returns the root node associated with this scope.
|
abstract StaticTypedSlot<T> |
getSlot(String name)
Returns any defined slot within this scope for this name.
|
T |
getTypeOfThis()
Returns the expected type of
this in the current scope. |
public Node getRootNode()
StaticScopegetRootNode in interface StaticScopepublic StaticTypedScope<T> getParentScope()
StaticTypedScopegetParentScope in interface StaticTypedScope<T>getParentScope in interface StaticScopepublic abstract StaticTypedSlot<T> getSlot(String name)
StaticTypedScopegetSlot in interface StaticTypedScope<T>getSlot in interface StaticScopename - The name of the variable slot to look up.null if no
definition exists.public StaticTypedSlot<T> getOwnSlot(String name)
StaticTypedScopegetSlot but does not recurse into parent scopes.getOwnSlot in interface StaticTypedScope<T>getOwnSlot in interface StaticScopepublic T getTypeOfThis()
StaticTypedScopethis in the current scope.getTypeOfThis in interface StaticTypedScope<T>Copyright © 2009-2015 Google. All Rights Reserved.