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 Statement
convert
(@NonNull Context context, int position, Expression condition, Statement whenTrue, Statement whenFalse) getKind()
static Statement
make
(int position, Expression condition, Statement whenTrue, Statement whenFalse) void
setCondition
(Expression condition) void
setWhenFalse
(Statement whenFalse) void
setWhenTrue
(Statement whenTrue) @NonNull String
toString()
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
-