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
ConstructorDescriptionIfStatement
(int position, Expression condition, Statement whenTrue, Statement whenFalse) -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.static Statement
convert
(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) 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:Node
Visit this AST with a given visitor. -
getCondition
-
setCondition
-
getWhenTrue
-
setWhenTrue
-
getWhenFalse
-
setWhenFalse
-
toString
-