Package org.jboss.jdeparser
Class ImplJSwitch
java.lang.Object
org.jboss.jdeparser.BasicJCommentable
org.jboss.jdeparser.ImplJSwitch
- All Implemented Interfaces:
BlockContent,JCommentable,JStatement,JSwitch,Writable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DefaultJBlockprivate final ArrayList<CaseJBlock> private final JExprprivate final BasicJBlock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a switch case for anenumconstant.Add a switch case._default()Add the default block.private <T extends CaseJBlock>
Tadd(T item) (package private) ArrayList<CaseJBlock> getCases()(package private) DefaultJBlock(package private) JExpr(package private) BasicJBlockvoidwrite(SourceFileWriter writer) Methods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeCommentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Field Details
-
parent
-
expr
-
cases
-
_default
-
-
Constructor Details
-
ImplJSwitch
ImplJSwitch(BasicJBlock parent, JExpr expr)
-
-
Method Details
-
add
-
_case
Description copied from interface:JSwitchAdd a switch case. -
_case
Description copied from interface:JSwitchAdd a switch case for anenumconstant. -
_default
Description copied from interface:JSwitchAdd the default block. -
getExpression
JExpr getExpression() -
getParent
BasicJBlock getParent() -
getCases
ArrayList<CaseJBlock> getCases() -
getDefault
DefaultJBlock getDefault() -
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-