|
|||||||||
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.JsTry
public class JsTry
A JavaScript try
statement.
Constructor Summary | |
---|---|
JsTry()
|
|
JsTry(JsBlock tryBlock,
JsCatch jsCatch,
JsBlock finallyBlock)
|
|
JsTry(JsBlock tryBlock,
java.util.List<JsCatch> catches,
JsBlock finallyBlock)
|
Method Summary | ||
---|---|---|
void |
accept(JsVisitor v)
Causes this object to have the visitor visit itself and its children. |
|
void |
acceptChildren(JsVisitor visitor)
|
|
JsTry |
deepCopy()
|
|
java.util.List<JsCatch> |
getCatches()
|
|
JsBlock |
getFinallyBlock()
|
|
java.lang.Object |
getSource()
Return the source info associated with this object. |
|
JsBlock |
getTryBlock()
|
|
void |
setFinallyBlock(JsBlock block)
|
|
void |
setSource(java.lang.Object info)
Set the source info associated with this object. |
|
void |
setTryBlock(JsBlock block)
|
|
JsNode |
source(java.lang.Object info)
|
|
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.dart.compiler.backend.js.ast.JsNode |
---|
getSource, setSource, source |
Constructor Detail |
---|
public JsTry()
public JsTry(JsBlock tryBlock, java.util.List<JsCatch> catches, @Nullable JsBlock finallyBlock)
public JsTry(JsBlock tryBlock, @Nullable JsCatch jsCatch, @Nullable JsBlock finallyBlock)
Method Detail |
---|
public java.util.List<JsCatch> getCatches()
public JsBlock getFinallyBlock()
public JsBlock getTryBlock()
public void setFinallyBlock(JsBlock block)
public void setTryBlock(JsBlock block)
public void accept(JsVisitor v)
JsNode
accept
in interface JsNode
v
- the visitor that should traverse this nodepublic void acceptChildren(JsVisitor visitor)
acceptChildren
in interface JsNode
public void traverse(JsVisitorWithContext v, JsContext ctx)
JsNode
traverse
in interface JsNode
v
- the visitor that should traverse this nodectx
- the context of an existing traversal@NotNull public JsTry deepCopy()
deepCopy
in interface JsNode
deepCopy
in interface JsStatement
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()
protected <T extends HasMetadata> T withMetadataFrom(T other)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |