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 TypeMethodDescriptionstatic @Nullable Statementconvert(@NonNull 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) @NonNull StringtoString()Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Constructor Details
-
IfStatement
-
-
Method Details
-
convert
public static @Nullable 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
-
getCondition
-
setCondition
-
getWhenTrue
-
setWhenTrue
-
getWhenFalse
-
setWhenFalse
-
toString
-