public static class JsVars.JsVar extends JsNode implements HasName
var
statement.Constructor and Description |
---|
JsVar(SourceInfo sourceInfo,
JsName name) |
Modifier and Type | Method and Description |
---|---|
JsExpression |
getInitExpr() |
NodeKind |
getKind() |
JsName |
getName() |
void |
setInitExpr(JsExpression initExpr) |
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
getSourceInfo, setSourceInfo, toSource, toSource, toString
public JsVar(SourceInfo sourceInfo, JsName name)
public JsExpression getInitExpr()
public void setInitExpr(JsExpression initExpr)
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
traverse
in interface JsVisitable
v
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.