public abstract class ASTItem extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
_originalSource |
protected String |
_preprocessedSource |
| Constructor and Description |
|---|
ASTItem() |
| Modifier and Type | Method and Description |
|---|---|
List<ASTItem> |
children() |
<T extends ASTItem> |
collectItemsOfType(Class<T> cls) |
List<ASTCondition> |
getAllConditions() |
String |
getGlobalPlain() |
int |
getGlobalPosition() |
String |
getOriginalSource() |
String |
getPreprocessedSource() |
List<ASTOperandProperty> |
getProperties() |
String |
getType() |
String |
getTypecommon() |
String |
getUntrimmedSource() |
boolean |
hasSource() |
String |
print(int level) |
void |
setGlobalPosition(int position) |
void |
setSource(String original) |
String |
space(int level) |
void |
walk(List<ASTItem> children,
ThrowingConsumer<ASTWalkingContext> action,
Class<?> cls) |
void |
walk(ThrowingConsumer<ASTWalkingContext> action) |
void |
walk(ThrowingConsumer<ASTWalkingContext> action,
Class<?> cls) |
protected String _preprocessedSource
protected String _originalSource
public String getPreprocessedSource()
public boolean hasSource()
public void setSource(String original)
public String getUntrimmedSource()
public String getOriginalSource()
public String getType()
public String getTypecommon()
public String print(int level)
public String space(int level)
public String getGlobalPlain()
public List<ASTCondition> getAllConditions()
public void walk(ThrowingConsumer<ASTWalkingContext> action)
public void walk(ThrowingConsumer<ASTWalkingContext> action, Class<?> cls)
public void walk(List<ASTItem> children, ThrowingConsumer<ASTWalkingContext> action, Class<?> cls)
public List<ASTOperandProperty> getProperties()
public int getGlobalPosition()
public void setGlobalPosition(int position)
Copyright © 2020. All rights reserved.