- すべてのスーパー・インタフェース:
StatementTree
,Tree
public interface IfTree extends StatementTree
if
文のツリー・ノード。 たとえば:
if ( condition ) thenStatement if ( condition ) thenStatement else elseStatement
- Java言語仕様を参照してください:
-
14.9 if文
- 導入されたバージョン:
- 1.6
-
ネストされたクラスのサマリー
-
メソッドのサマリー
修飾子と型メソッド説明if文の条件を返します。条件がfalseの場合に実行される文、またはそのような文がない場合はnull
を返します。条件が真である場合に実行される文を返します。
-
メソッドの詳細
-
getCondition
-
getThenStatement
-
getElseStatement
StatementTree getElseStatement()条件がfalseの場合に実行される文、またはそのような文がない場合はnull
を返します。- 戻り値:
- 条件がfalseの場合に実行される文
-