public static class Java.SWITCH extends Java._StatementBlock
modCount| Constructor and Description |
|---|
SWITCH(String condition)
Constructor for the SWITCH object
|
| Modifier and Type | Method and Description |
|---|---|
Java.CASE |
addCASE(boolean block,
String cond) |
Java.CASE |
addCASE(String cond)
Adds a feature to the CASE attribute of the SWITCH object
|
Java.CASE |
addDEFAULT()
Adds a feature to the DEFAULT attribute of the SWITCH object
|
Java.CASE |
addDEFAULT(boolean block) |
void |
emit(int indent,
PrintWriter fp)
Write a CASE statement.
|
addDOWHILE, addFOR, addIF, addLABEL, addLine, addLine, addRETURN, addS, addSWITCH, addTRY, addVAR, addVAR, addWHILEaddC, addC, emitIndentadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic SWITCH(String condition)
condition - public Java.CASE addCASE(String cond)
cond - The feature to be added to the CASE attributepublic Java.CASE addDEFAULT()
public Java.CASE addDEFAULT(boolean block)
public void emit(int indent,
PrintWriter fp)
emit in class Java._Blockindent - fp - Copyright © 2013–2014. All rights reserved.