public class JsVars extends JsStatement implements Iterable<JsVars.JsVar>
var
statement.Modifier and Type | Class and Description |
---|---|
static class |
JsVars.JsVar
A var declared using the JavaScript
var statement. |
Constructor and Description |
---|
JsVars(SourceInfo sourceInfo,
JsVars.JsVar... vars) |
Modifier and Type | Method and Description |
---|---|
void |
add(JsVars.JsVar var) |
NodeKind |
getKind() |
int |
getNumVars() |
boolean |
isEmpty() |
Iterator<JsVars.JsVar> |
iterator() |
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
shouldRecordPosition, unconditionalControlBreak
getSourceInfo, setSourceInfo, toSource, toSource, toString
forEach, spliterator
public JsVars(SourceInfo sourceInfo, JsVars.JsVar... vars)
public void add(JsVars.JsVar var)
public int getNumVars()
public boolean isEmpty()
public Iterator<JsVars.JsVar> iterator()
iterator
in interface Iterable<JsVars.JsVar>
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.