|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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)
|
JsEmpty |
getEmptyStatement()
|
JsBlock |
getFragmentBlock(int fragment)
|
JsBlock |
getGlobalBlock()
|
JsNumberLiteral |
getNumberLiteral(double value)
|
JsNumberLiteral |
getNumberLiteral(int value)
|
JsRootScope |
getRootScope()
Gets the quasi-mythical root scope. |
JsScope |
getScope()
Gets the top level scope. |
java.lang.Object |
getSource()
Return the source info associated with this object. |
JsStringLiteral |
getStringLiteral(java.lang.String value)
Creates or retrieves a JsStringLiteral from an interned object pool. |
void |
setFragmentCount(int fragments)
|
void |
setSource(java.lang.Object info)
Set the source info associated with this object. |
JsNode |
source(java.lang.Object info)
|
java.lang.String |
toString()
|
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 |
---|
public JsEmpty getEmptyStatement()
public JsBlock getFragmentBlock(int fragment)
public JsBlock getGlobalBlock()
public JsNumberLiteral getNumberLiteral(double value)
public JsNumberLiteral getNumberLiteral(int value)
public JsRootScope getRootScope()
public JsScope getScope()
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
public java.lang.Object getSource()
JsNode
public void setSource(java.lang.Object info)
JsNode
public JsNode source(java.lang.Object info)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |