|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHasMetadata
com.google.dart.compiler.backend.js.ast.SourceInfoAwareJsNode
com.google.dart.compiler.backend.js.ast.JsProgram
public final class JsProgram
A JavaScript program.
Constructor Summary | |
---|---|
JsProgram(java.lang.String unitId)
|
Method Summary | ||
---|---|---|
void |
accept(JsVisitor v)
Causes this object to have the visitor visit itself and its children. |
|
void |
acceptChildren(JsVisitor visitor)
|
|
JsProgram |
deepCopy()
|
|
JsExpression |
getEmptyExpression()
|
|
JsBlock |
getFragmentBlock(int fragment)
|
|
JsBlock |
getGlobalBlock()
|
|
JsNumberLiteral |
getNumberLiteral(double value)
|
|
JsNumberLiteral |
getNumberLiteral(int value)
|
|
JsRootScope |
getRootScope()
Gets the quasi-mythical root scope. |
|
JsObjectScope |
getScope()
Gets the top level scope. |
|
JsStringLiteral |
getStringLiteral(java.lang.String value)
Creates or retrieves a JsStringLiteral from an interned object pool. |
|
void |
setFragmentCount(int fragments)
|
|
java.lang.String |
toString()
|
|
void |
traverse(JsVisitorWithContext v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children. |
|
protected
|
withMetadataFrom(T other)
|
Methods inherited from class com.google.dart.compiler.backend.js.ast.SourceInfoAwareJsNode |
---|
getSource, setSource, source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JsProgram(java.lang.String unitId)
Method Detail |
---|
@NotNull public JsExpression getEmptyExpression()
public JsBlock getFragmentBlock(int fragment)
public JsBlock getGlobalBlock()
public JsNumberLiteral getNumberLiteral(double value)
public JsNumberLiteral getNumberLiteral(int value)
public JsRootScope getRootScope()
public JsObjectScope getScope()
@NotNull public JsStringLiteral getStringLiteral(java.lang.String value)
public void setFragmentCount(int fragments)
public void accept(JsVisitor v)
JsNode
v
- the visitor that should traverse this nodepublic void acceptChildren(JsVisitor visitor)
acceptChildren
in interface JsNode
acceptChildren
in class SourceInfoAwareJsNode
public void traverse(JsVisitorWithContext v, JsContext ctx)
JsNode
v
- the visitor that should traverse this nodectx
- the context of an existing traversal@NotNull public JsProgram deepCopy()
public java.lang.String toString()
protected <T extends HasMetadata> T withMetadataFrom(T other)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |