Modifier and Type | Interface and Description |
---|---|
interface |
JCatch
A
catch branch for a try block. |
interface |
JFor
A
for loop. |
interface |
JIf
An
if statement. |
interface |
JTry
A
try block. |
Modifier and Type | Method and Description |
---|---|
JBlock |
JSwitch._case(JExpr expr)
Add a switch case.
|
JBlock |
JSwitch._case(String constName)
Add a switch case for an
enum constant. |
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,
Class<?> type,
String name,
JExpr iterable)
Insert a "for-each" style
for loop at this point. |
JBlock |
JBlock.forEach(int mods,
JType type,
String name,
JExpr iterable)
Insert a "for-each" style
for loop at this point. |
JBlock |
JBlock.forEach(int mods,
String type,
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.
|
Copyright © 2016. All rights reserved.