Class IfStatement
- java.lang.Object
-
- org.jd.core.v1.model.javasyntax.statement.IfStatement
-
- All Implemented Interfaces:
java.lang.Iterable<Statement>
,BaseStatement
,Statement
,Base<Statement>
- Direct Known Subclasses:
IfElseStatement
public class IfStatement extends java.lang.Object implements Statement
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
condition
protected BaseStatement
statements
-
Constructor Summary
Constructors Constructor Description IfStatement(Expression condition, BaseStatement statements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StatementVisitor visitor)
Expression
getCondition()
BaseStatement
getStatements()
void
setCondition(Expression condition)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
condition
protected Expression condition
-
statements
protected BaseStatement statements
-
-
Constructor Detail
-
IfStatement
public IfStatement(Expression condition, BaseStatement statements)
-
-
Method Detail
-
getCondition
public Expression getCondition()
-
setCondition
public void setCondition(Expression condition)
-
getStatements
public BaseStatement getStatements()
-
accept
public void accept(StatementVisitor visitor)
- Specified by:
accept
in interfaceBaseStatement
-
-