FileDocCategorySizeDatePackage
IfTree.javaAPI DocJava SE 6 API986Tue Jun 10 00:23:24 BST 2008com.sun.source.tree

IfTree

public interface IfTree implements StatementTree
A tree node for an 'if' statement. For example:
if ( condition )
thenStatement

if ( condition )
thenStatement
else
elseStatement
see
"The Java Language Specification, 3rd ed, section 14.9"
author
Peter von der Ahé
author
Jonathan Gibbons
since
1.6

Fields Summary
Constructors Summary
Methods Summary
public com.sun.source.tree.ExpressionTreegetCondition()

public com.sun.source.tree.StatementTreegetElseStatement()

return
null if this if statement has no else branch.

public com.sun.source.tree.StatementTreegetThenStatement()