
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, findExistingName, findExistingUnobfuscatableName, toStringpublic static final JsRootScope INSTANCE
public Iterable<JsName> getAllNames()
JsScopegetAllNames in class JsScopepublic List<JsScope> getChildren()
JsScopegetChildren in class JsScopepublic JsScope getParent()
JsScopenull if this is the root scope.public JsName getUndefined()
protected JsName doCreateName(String ident, String shortIdent)
JsScopedoCreateName in class JsScopeprotected JsName findExistingNameNoRecurse(String ident)
JsScopefindExistingNameNoRecurse in class JsScopenull if the identifier has no associated nameCopyright © 2018. All rights reserved.