JBlock |
JSwitch._case(java.lang.String constName) |
Add a switch case for an enum constant.
|
JBlock |
JSwitch._case(JExpr expr) |
Add a switch case.
|
JBlock |
JMethodDef._default() |
A default method body for a JDK 8+ interface method.
|
JBlock |
JSwitch._default() |
Add the default block.
|
JBlock |
JBlock._do(JExpr cond) |
Insert a do /while statement at this point.
|
JBlock |
JIf._else() |
Get the else condition block.
|
JBlock |
JTry._finally() |
Add the finally block for this try .
|
JBlock |
JBlock._synchronized(JExpr synchExpr) |
Insert a synchronized block at this point.
|
JBlock |
JBlock._while(JExpr cond) |
Insert a while statement at this point.
|
JBlock |
JBlock.blankLine() |
Insert a blank line at this point.
|
JBlock |
JBlock.block(JBlock.Braces braces) |
Create a nested sub-block at this point.
|
JBlock |
JLambda.body() |
Get the lambda body as a block.
|
JBlock |
JMethodDef.body() |
Get the method body.
|
JBlock |
JBlock.forEach(int mods,
java.lang.Class<?> type,
java.lang.String name,
JExpr iterable) |
Insert a "for-each" style for loop at this point.
|
JBlock |
JBlock.forEach(int mods,
java.lang.String type,
java.lang.String name,
JExpr iterable) |
Insert a "for-each" style for loop at this point.
|
JBlock |
JBlock.forEach(int mods,
JType type,
java.lang.String name,
JExpr iterable) |
Insert a "for-each" style for loop at this point.
|
JBlock |
JClassDefSection.init() |
Add a "raw" initialization block to this type definition.
|
JBlock |
JClassDefSection.staticInit() |
Add a static initialization block to this type definition.
|