IfTree

IfTree (if 문 (if 노드))

if 문을 나타내는 트리 노드입니다. StatementTree를 상속합니다. 예를 들어 if (condition) thenStatement 또는 if (condition) thenStatement else elseStatement 형태를 표현합니다.

출처: Java API Reference

본문

getCondition()은 if 문의 조건을, getThenStatement()는 조건이 참일 때 실행할 문장을, getElseStatement()는 조건이 거짓일 때 실행할 문장을 반환합니다(else 절이 없으면 null). Java 언어 명세 14.9절(The if Statement)을 참조합니다.

더 알아보기 (Learn more)

Java 공식 API