public abstract class StatementBase extends ASTSourceBase implements Statement
Constructor and Description |
---|
StatementBase() |
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
ProgramAnnotation |
getAnnotation()
Get the annotation for this item.
|
StatJudgement |
getJudgement()
Get command judgement.
|
void |
setAnnotation(ProgramAnnotation annotation)
Set the annotation for this item.
|
void |
setJudgement(StatJudgement judgement)
Set command judgement.
|
getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPosition, setPosition
print, printCore, toString, toStringCore
public void setAnnotation(ProgramAnnotation annotation)
setAnnotation
in interface ASTProgramAnnotated
annotation
- the annotation.public ProgramAnnotation getAnnotation()
getAnnotation
in interface ASTProgramAnnotated
public void setJudgement(StatJudgement judgement)
setJudgement
in interface Statement
judgement
- the judgement.public StatJudgement getJudgement()
getJudgement
in interface Statement
public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class ASTSourceBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class ASTSourceBase
visitor
- the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class ASTBase
visitor
- the visitor who is accepted by the children of this node.