|
|||||||||
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.JsCatch
public class JsCatch
Represents a JavaScript catch clause.
Field Summary | |
---|---|
protected JsCatchScope |
scope
|
Constructor Summary | |
---|---|
JsCatch(JsScope parent,
java.lang.String ident)
|
|
JsCatch(JsScope parent,
java.lang.String ident,
JsStatement catchBody)
|
Method Summary | ||
---|---|---|
void |
accept(JsVisitor v)
Causes this object to have the visitor visit itself and its children. |
|
void |
acceptChildren(JsVisitor visitor)
|
|
JsCatch |
deepCopy()
|
|
JsBlock |
getBody()
|
|
JsExpression |
getCondition()
|
|
JsParameter |
getParameter()
|
|
JsScope |
getScope()
|
|
java.lang.Object |
getSource()
Return the source info associated with this object. |
|
void |
setBody(JsBlock body)
|
|
void |
setCondition(JsExpression condition)
|
|
void |
setSource(java.lang.Object info)
Set the source info associated with this object. |
|
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 |
Field Detail |
---|
protected final JsCatchScope scope
Constructor Detail |
---|
public JsCatch(JsScope parent, @NotNull java.lang.String ident)
public JsCatch(JsScope parent, @NotNull java.lang.String ident, @NotNull JsStatement catchBody)
Method Detail |
---|
public JsBlock getBody()
public JsExpression getCondition()
getCondition
in interface HasCondition
public JsParameter getParameter()
public JsScope getScope()
public void setBody(JsBlock body)
public void setCondition(JsExpression condition)
setCondition
in interface HasCondition
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 JsCatch deepCopy()
deepCopy
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()
protected <T extends HasMetadata> T withMetadataFrom(T other)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |