Modifier and Type | Class and Description |
---|---|
static interface |
ASTN.Walker |
Modifier and Type | Field and Description |
---|---|
protected boolean |
isComment |
protected Object |
object |
protected ASTNList |
parent |
protected ParseCtx |
pctx |
Exception |
problem |
Constructor and Description |
---|
ASTN(Object object,
ParseCtx pctx)
Make an ASTN node for a code node.
|
ASTN(Object object,
ParseCtx pctx,
boolean isComment)
Make an ASTN node, possible for a comment node.
|
ASTN(Object object,
ParseCtx pctx,
Exception ex)
Make an ASTN node for an invalid expression.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatchWalker(ASTN.Walker walker)
dispatch walker run on ASTN tree.
|
abstract Object |
getObject() |
ASTN |
getParent() |
ParseCtx |
getPctx() |
Exception |
getProblem() |
abstract boolean |
hasProblems() |
boolean |
isComment() |
abstract boolean |
isList() |
String |
toString() |
String |
toStringWithPos()
Print out a node with source code location and error messages.
|
protected ParseCtx pctx
protected Object object
protected boolean isComment
protected ASTNList parent
public Exception problem
public ASTN(Object object, ParseCtx pctx, boolean isComment)
public abstract boolean hasProblems()
public Exception getProblem()
public ParseCtx getPctx()
public abstract boolean isList()
public boolean isComment()
public abstract Object getObject()
public ASTN getParent()
public String toStringWithPos()
public void dispatchWalker(ASTN.Walker walker)
Copyright © 2022. All rights reserved.