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, getTypeOfThis
public static MapBasedScope emptyScope()
public StaticSlot<JSType> getSlot(String name)
StaticScope
getSlot
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-2015 Google. All Rights Reserved.