com.github.antlrjavaparser.api.stmt
Class IfStmt
java.lang.Object
com.github.antlrjavaparser.api.Node
com.github.antlrjavaparser.api.stmt.Statement
com.github.antlrjavaparser.api.stmt.IfStmt
public final class IfStmt
- extends Statement
- Author:
- Julio Vilmar Gesser
| Methods inherited from class com.github.antlrjavaparser.api.Node |
equals, getBeginColumn, getBeginComments, getBeginLine, getData, getEndColumn, getEndComments, getEndLine, getInternalComments, hashCode, setBeginColumn, setBeginComments, setBeginLine, setData, setEndColumn, setEndComments, setEndLine, setInternalComments, toString |
IfStmt
public IfStmt()
IfStmt
public IfStmt(Expression condition,
Statement thenStmt,
Statement elseStmt)
IfStmt
public IfStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression condition,
Statement thenStmt,
Statement elseStmt)
accept
public <R,A> R accept(GenericVisitor<R,A> v,
A arg)
- Description copied from class:
Node
- Accept method for visitor support.
- Specified by:
accept in class Node
- Type Parameters:
R - the type the return value of the visitorA - the type the argument passed for the visitor- Parameters:
v - the visitor implementationarg - any value relevant for the visitor
- Returns:
- the result of the visit
accept
public <A> void accept(VoidVisitor<A> v,
A arg)
- Description copied from class:
Node
- Accept method for visitor support.
- Specified by:
accept in class Node
- Type Parameters:
A - the type the argument passed for the visitor- Parameters:
v - the visitor implementationarg - any value relevant for the visitor
getCondition
public Expression getCondition()
getElseStmt
public Statement getElseStmt()
getThenStmt
public Statement getThenStmt()
setCondition
public void setCondition(Expression condition)
setElseStmt
public void setElseStmt(Statement elseStmt)
setThenStmt
public void setThenStmt(Statement thenStmt)
Copyright © 2013. All Rights Reserved.