Example usage for Java org.eclipse.jdt.core.dom IfStatement fields, constructors, methods, implement or subclass
The text is from its open source code.
ChildPropertyDescriptor | EXPRESSION_PROPERTY The "expression" structural property of this node type (child type: Expression ). |
ChildPropertyDescriptor | THEN_STATEMENT_PROPERTY The "thenStatement" structural property of this node type (child type: Statement ). |
ChildPropertyDescriptor | ELSE_STATEMENT_PROPERTY The "elseStatement" structural property of this node type (child type: Statement ). |
IfStatement(AST ast) Creates a new unparented if statement node owned by the given AST. |
Statement | getElseStatement() Returns the "else" part of this if statement, or null if this if statement has no "else" part. |
Expression | getExpression() Returns the expression of this if statement. |
Statement | getThenStatement() Returns the "then" part of this if statement. |
void | setElseStatement(Statement statement) Sets or clears the "else" part of this if statement. |
void | setExpression(Expression expression) Sets the condition of this if statement. |
void | setThenStatement(Statement statement) Sets the "then" part of this if statement. |