Class IfStatement
- java.lang.Object
-
- org.jparsec.examples.common.ValueObject
-
- org.jparsec.examples.java.ast.statement.IfStatement
-
- All Implemented Interfaces:
Statement
public final class IfStatement extends ValueObject implements Statement
Represents an "if" statement.
-
-
Field Summary
Fields Modifier and Type Field Description Expression
condition
java.util.List<Pair<Expression,Statement>>
elseifs
Statement
otherwise
Statement
then
-
Constructor Summary
Constructors Constructor Description IfStatement(Expression condition, Statement then, java.util.List<Pair<Expression,Statement>> elseifs, Statement otherwise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
Methods inherited from class org.jparsec.examples.common.ValueObject
equals, hashCode
-
-
-
-
Field Detail
-
condition
public final Expression condition
-
then
public final Statement then
-
elseifs
public final java.util.List<Pair<Expression,Statement>> elseifs
-
otherwise
public final Statement otherwise
-
-
Constructor Detail
-
IfStatement
public IfStatement(Expression condition, Statement then, java.util.List<Pair<Expression,Statement>> elseifs, Statement otherwise)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classValueObject
-
-