public class MapBasedScope extends AbstractStaticScope<JSType>
| Constructor and Description |
|---|
MapBasedScope(Map<String,? extends JSType> namesToTypes) |
| Modifier and Type | Method and Description |
|---|---|
static MapBasedScope |
emptyScope() |
StaticTypedSlot<JSType> |
getSlot(String name)
Returns any defined slot within this scope for this name.
|
getOwnSlot, getParentScope, getRootNode, getTypeOfThispublic static MapBasedScope emptyScope()
public StaticTypedSlot<JSType> getSlot(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.Copyright © 2009-2015 Google. All Rights Reserved.