Package org.jboss.jdeparser
Interface JIf
- All Superinterfaces:
JBlock
,JCommentable
,JStatement
- All Known Implementing Classes:
ImplJIf
An
if
statement.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JBlock
JBlock.Braces
-
Method Summary
Methods inherited from interface org.jboss.jdeparser.JBlock
_assert, _assert, _break, _break, _class, _continue, _continue, _do, _for, _if, _new, _new, _new, _newAnon, _newAnon, _newAnon, _return, _return, _switch, _synchronized, _throw, _try, _while, add, addAssign, andAssign, anonLabel, anonLabel, assign, blankLine, block, call, call, call, call, callStatic, callStatic, callStatic, callStatic, callSuper, callThis, divAssign, empty, forEach, forEach, forEach, forwardLabel, label, label, lshrAssign, modAssign, mulAssign, orAssign, postDec, postInc, preDec, preInc, shlAssign, shrAssign, subAssign, tempName, tempVar, tempVar, tempVar, var, var, var, var, var, var, xorAssign
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Method Details
-
_else
JBlock _else()Get theelse
condition block.- Returns:
- the
else
block
-
elseIf
Add anif
statement to theelse
block.- Parameters:
cond
- the subsequentif
condition- Returns:
- the subsequent
if
statement
-