|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.javascript.rhino.testing.EmptyScope
public class EmptyScope
An empty scope implementation.
Constructor Summary | |
---|---|
EmptyScope()
|
Method Summary | |
---|---|
StaticSlot<JSType> |
getOwnSlot(String name)
Like getSlot but does not recurse into parent scopes. |
StaticScope<JSType> |
getParentScope()
Returns the scope enclosing this one or null if none. |
StaticSlot<JSType> |
getSlot(String name)
Returns any defined slot within this scope for this name. |
JSType |
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 EmptyScope()
Method Detail |
---|
public StaticScope<JSType> getParentScope()
StaticScope
getParentScope
in interface StaticScope<JSType>
public StaticSlot<JSType> getSlot(String name)
StaticScope
getSlot
in interface StaticScope<JSType>
name
- The name of the variable slot to look up.
null
if no
definition exists.public StaticSlot<JSType> getOwnSlot(String name)
StaticScope
getSlot
but does not recurse into parent scopes.
getOwnSlot
in interface StaticScope<JSType>
public JSType getTypeOfThis()
StaticScope
this
in the current scope.
getTypeOfThis
in interface StaticScope<JSType>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |