Package icyllis.arc3d.compiler.tree
Class IfStatement
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Statement
icyllis.arc3d.compiler.tree.IfStatement
if (condition)
true-statement
else
false-statement
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionIfStatement(int position, Expression condition, Statement whenTrue, Statement whenFalse) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(TreeVisitor visitor) Visit this AST with a given visitor.static Statementconvert(Context context, int position, Expression condition, Statement whenTrue, Statement whenFalse) getKind()static Statementmake(int position, Expression condition, Statement whenTrue, Statement whenFalse) voidsetCondition(Expression condition) voidsetWhenFalse(Statement whenFalse) voidsetWhenTrue(Statement whenTrue) toString()Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Constructor Details
-
IfStatement
-
-
Method Details
-
convert
@Nullable public static Statement convert(@Nonnull Context context, int position, Expression condition, Statement whenTrue, Statement whenFalse) -
make
public static Statement make(int position, Expression condition, Statement whenTrue, Statement whenFalse) -
getKind
-
accept
Description copied from class:NodeVisit this AST with a given visitor. -
getCondition
-
setCondition
-
getWhenTrue
-
setWhenTrue
-
getWhenFalse
-
setWhenFalse
-
toString
-