Java org.eclipse.jdt.core.dom IfStatement fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom IfStatement fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom IfStatement.

The text is from its open source code.

Field

ChildPropertyDescriptorEXPRESSION_PROPERTY
The "expression" structural property of this node type (child type: Expression ).
ChildPropertyDescriptorTHEN_STATEMENT_PROPERTY
The "thenStatement" structural property of this node type (child type: Statement ).
ChildPropertyDescriptorELSE_STATEMENT_PROPERTY
The "elseStatement" structural property of this node type (child type: Statement ).

Constructor

IfStatement(AST ast)
Creates a new unparented if statement node owned by the given AST.

Method

StatementgetElseStatement()
Returns the "else" part of this if statement, or null if this if statement has no "else" part.
ExpressiongetExpression()
Returns the expression of this if statement.
StatementgetThenStatement()
Returns the "then" part of this if statement.
voidsetElseStatement(Statement statement)
Sets or clears the "else" part of this if statement.
voidsetExpression(Expression expression)
Sets the condition of this if statement.
voidsetThenStatement(Statement statement)
Sets the "then" part of this if statement.