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 BasicJCommentable
blockComment, lineComment, writeCommentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JCommentable
blockComment, lineComment
-
Field Details
-
parent
-
expr
-
cases
-
_default
-
-
Constructor Details
-
ImplJSwitch
ImplJSwitch(BasicJBlock parent, JExpr expr)
-
-
Method Details
-
add
-
_case
-
_case
-
_default
-
getExpression
JExpr getExpression() -
getParent
BasicJBlock getParent() -
getCases
ArrayList<CaseJBlock> getCases() -
getDefault
DefaultJBlock getDefault() -
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-