public class MapBasedScope extends AbstractStaticScope<JSType>
| Constructor and Description |
|---|
MapBasedScope(Map<String,? extends JSType> namesToTypes) |
| Modifier and Type | Method and Description |
|---|---|
static MapBasedScope |
emptyScope() |
StaticSlot<JSType> |
getSlot(String name)
Returns any defined slot within this scope for this name.
|
getOwnSlot, getParentScope, getRootNode, getTypeOfThispublic static MapBasedScope emptyScope()
public StaticSlot<JSType> getSlot(String name)
StaticScopegetSlot in interface StaticScope<JSType>getSlot in class AbstractStaticScope<JSType>name - The name of the variable slot to look up.null if no
definition exists.Copyright © 2009-2014 Google. All Rights Reserved.