public final class ThrowStatement extends CallStatement
args, method
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
static ThrowStatement |
construct(Name name,
ValueExpression value)
Construct a throw (exception) statement.
|
ValueExpression |
getValue()
Get the exception value.
|
acceptChildren, getKind, getMethodSymbol, setMethodSymbol
getAnnotation, getJudgement, setAnnotation, setJudgement
getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPosition, setPosition
print, printCore, toString, toStringCore
public static ThrowStatement construct(Name name, ValueExpression value)
name
- the exception namevalue
- the exception valuepublic ValueExpression getValue()
public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class CallStatement
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class CallStatement
visitor
- the visitor who is accepted by this node.