|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.javascript.rhino.testing.AbstractStaticScope<T>
public abstract class AbstractStaticScope<T>
A scope that just returns null for everything.
| Constructor Summary | |
|---|---|
AbstractStaticScope()
|
|
| Method Summary | |
|---|---|
StaticSlot<T> |
getOwnSlot(String name)
Like getSlot but does not recurse into parent scopes. |
StaticScope<T> |
getParentScope()
Returns the scope enclosing this one or null if none. |
Node |
getRootNode()
Returns the root node associated with this scope. |
abstract StaticSlot<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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractStaticScope()
| Method Detail |
|---|
public Node getRootNode()
StaticScope
getRootNode in interface StaticScope<T>public StaticScope<T> getParentScope()
StaticScope
getParentScope in interface StaticScope<T>public abstract StaticSlot<T> getSlot(String name)
StaticScope
getSlot in interface StaticScope<T>name - The name of the variable slot to look up.
null if no
definition exists.public StaticSlot<T> getOwnSlot(String name)
StaticScopegetSlot but does not recurse into parent scopes.
getOwnSlot in interface StaticScope<T>public T getTypeOfThis()
StaticScopethis in the current scope.
getTypeOfThis in interface StaticScope<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||