public class MapBasedScope extends AbstractStaticScope<JSType>
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,StaticTypedSlot<JSType>> |
slots |
| Constructor and Description |
|---|
MapBasedScope(java.util.Map<java.lang.String,? extends JSType> namesToTypes) |
| Modifier and Type | Method and Description |
|---|---|
static MapBasedScope |
emptyScope() |
StaticTypedSlot<JSType> |
getSlot(java.lang.String name)
Returns any defined slot within this scope for this name.
|
getOwnSlot, getParentScope, getRootNode, getTypeOfThisprivate final java.util.Map<java.lang.String,StaticTypedSlot<JSType>> slots
public MapBasedScope(java.util.Map<java.lang.String,? extends JSType> namesToTypes)
public static MapBasedScope emptyScope()
public StaticTypedSlot<JSType> getSlot(java.lang.String name)
StaticTypedScopegetSlot in interface StaticTypedScope<JSType>getSlot in interface StaticScopegetSlot in class AbstractStaticScope<JSType>name - The name of the variable slot to look up.null if no
definition exists.