ASTN.Walker
Modifier and Type | Field and Description |
---|---|
protected boolean |
isLiteralList |
protected boolean |
isMultiExpr |
Constructor and Description |
---|
ASTNList(List<ASTN> object,
ParseCtx pctx) |
ASTNList(List<ASTN> object,
ParseCtx pctx,
boolean isComment) |
Modifier and Type | Method and Description |
---|---|
void |
add(ASTN astn)
Add an AST node to this list.
|
void |
addAll(ASTNList astns)
Add all nodes from another AST list.
|
protected String |
astnlistToString(List<ASTN> lst) |
ASTN |
get(int idx) |
List<ASTN> |
getList() |
Object |
getObject() |
boolean |
hasProblems() |
boolean |
isEmpty() |
boolean |
isList() |
boolean |
isLiteralList() |
boolean |
isMultiExpr() |
Iterator<ASTN> |
iterator() |
void |
setIsLiteralList(boolean val) |
void |
setMultiExpr(boolean multiExpr) |
int |
size() |
ASTNList |
subList(int start,
int end)
Return sublist of AST nodes.
|
String |
toString() |
String |
toStringWithPos()
Print out a node with source code location and error messages.
|
dispatchWalker, getParent, getPctx, getProblem, isComment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected boolean isMultiExpr
protected boolean isLiteralList
public boolean isMultiExpr()
public void setMultiExpr(boolean multiExpr)
public boolean hasProblems()
hasProblems
in class ASTN
public ASTN get(int idx)
public void addAll(ASTNList astns)
public void add(ASTN astn)
public int size()
public ASTNList subList(int start, int end)
public boolean isEmpty()
public String toStringWithPos()
ASTN
toStringWithPos
in class ASTN
public void setIsLiteralList(boolean val)
public boolean isLiteralList()
Copyright © 2022. All rights reserved.