public final class JsRootScope extends JsScope
Modifier and Type | Field and Description |
---|---|
static JsRootScope |
INSTANCE |
Constructor and Description |
---|
JsRootScope() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(JsScope child) |
protected JsName |
doCreateName(String ident,
String shortIdent)
Creates a new name in this scope.
|
protected JsName |
findExistingNameNoRecurse(String ident)
Attempts to find the name object for the specified ident, searching in this scope only.
|
Iterable<JsName> |
getAllNames()
Returns an iterable for all the names defined by this scope.
|
List<JsScope> |
getChildren()
Returns a list of this scope's child scopes.
|
JsScope |
getParent()
Returns the parent scope of this scope, or
null if this is the root scope. |
JsName |
getUndefined() |
declareName, declareName, declareUnobfuscatableName, findExistingName, findExistingUnobfuscatableName, getDescription, toString
public static final JsRootScope INSTANCE
public Iterable<JsName> getAllNames()
JsScope
getAllNames
in class JsScope
public List<JsScope> getChildren()
JsScope
getChildren
in class JsScope
public JsScope getParent()
JsScope
null
if this is the root scope.public JsName getUndefined()
protected JsName doCreateName(String ident, String shortIdent)
JsScope
doCreateName
in class JsScope
protected JsName findExistingNameNoRecurse(String ident)
JsScope
findExistingNameNoRecurse
in class JsScope
null
if the identifier has no associated nameCopyright © 2018. All rights reserved.