Package org.jboss.jdeparser
Class ImplJIf
- java.lang.Object
-
- org.jboss.jdeparser.BasicJCommentable
-
- org.jboss.jdeparser.BasicJBlock
-
- org.jboss.jdeparser.ConditionJBlock
-
- org.jboss.jdeparser.ImplJIf
-
- All Implemented Interfaces:
BlockContent
,JBlock
,JCommentable
,JIf
,JStatement
,Writable
class ImplJIf extends ConditionJBlock implements JIf
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JBlock
JBlock.Braces
-
-
Field Summary
Fields Modifier and Type Field Description private ElseJBlock
_else
-
Constructor Summary
Constructors Constructor Description ImplJIf(BasicJBlock parent, JExpr cond)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JBlock
_else()
Get theelse
condition block.JIf
elseIf(JExpr cond)
Add anif
statement to theelse
block.void
write(SourceFileWriter writer)
-
Methods inherited from class org.jboss.jdeparser.ConditionJBlock
getCondition
-
Methods inherited from class org.jboss.jdeparser.BasicJBlock
_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, get, getParent, hasSingleItemOfType, label, label, lshrAssign, modAssign, mulAssign, orAssign, postDec, postInc, preDec, preInc, shlAssign, shrAssign, size, subAssign, tempName, tempVar, tempVar, tempVar, var, var, var, var, var, var, write, write, xorAssign
-
Methods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Field Detail
-
_else
private ElseJBlock _else
-
-
Constructor Detail
-
ImplJIf
ImplJIf(BasicJBlock parent, JExpr cond)
-
-
Method Detail
-
elseIf
public JIf elseIf(JExpr cond)
Description copied from interface:JIf
Add anif
statement to theelse
block.
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
- Specified by:
write
in interfaceWritable
- Overrides:
write
in classBasicJBlock
- Throws:
java.io.IOException
-
-