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 | Class and Description |
---|---|
(package private) class |
BasicJBlock |
(package private) class |
CaseJBlock |
(package private) class |
ConditionJBlock |
(package private) class |
DefaultJBlock |
(package private) class |
DoJBlock |
(package private) class |
ElseJBlock |
(package private) class |
FinallyJBlock |
(package private) class |
ForEachJBlock |
(package private) class |
ForJBlock |
(package private) class |
ImplJCatch |
(package private) class |
ImplJIf |
(package private) class |
ImplJTry |
(package private) class |
InitJBlock |
(package private) class |
StaticInitJBlock |
(package private) class |
SynchJBlock |
(package private) class |
WhileJBlock |
Modifier and Type | Method and Description |
---|---|
JBlock |
JSwitch._case(JExpr expr)
Add a switch case.
|
JBlock |
ImplJSwitch._case(JExpr expr) |
JBlock |
JSwitch._case(java.lang.String constName)
Add a switch case for an
enum constant. |
JBlock |
ImplJSwitch._case(java.lang.String constName) |
JBlock |
JMethodDef._default()
A default method body for a JDK 8+ interface method.
|
JBlock |
JSwitch._default()
Add the default block.
|
JBlock |
ImplJSwitch._default() |
JBlock |
AbstractJMethodDef._default() |
JBlock |
BasicJBlock._do(JExpr cond) |
JBlock |
JBlock._do(JExpr cond)
Insert a
do /while statement at this point. |
JBlock |
JIf._else()
Get the
else condition block. |
JBlock |
ImplJIf._else() |
JBlock |
ImplJTry._finally() |
JBlock |
JTry._finally()
Add the
finally block for this try . |
JBlock |
ImplJCatch._finally() |
JBlock |
BasicJBlock._synchronized(JExpr synchExpr) |
JBlock |
JBlock._synchronized(JExpr synchExpr)
Insert a
synchronized block at this point. |
JBlock |
BasicJBlock._while(JExpr cond) |
JBlock |
JBlock._while(JExpr cond)
Insert a
while statement at this point. |
JBlock |
BasicJBlock.blankLine() |
JBlock |
JBlock.blankLine()
Insert a blank line at this point.
|
JBlock |
BasicJBlock.block(JBlock.Braces braces) |
JBlock |
JBlock.block(JBlock.Braces braces)
Create a nested sub-block at this point.
|
JBlock |
JLambdaImpl.body() |
JBlock |
JMethodDef.body()
Get the method body.
|
JBlock |
AnnotationJMethodDef.body() |
JBlock |
JLambda.body()
Get the lambda body as a block.
|
JBlock |
AbstractJMethodDef.body() |
JBlock |
BasicJBlock.forEach(int mods,
java.lang.Class<?> type,
java.lang.String name,
JExpr iterable) |
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 |
BasicJBlock.forEach(int mods,
JType type,
java.lang.String name,
JExpr iterable) |
JBlock |
JBlock.forEach(int mods,
JType type,
java.lang.String name,
JExpr iterable)
Insert a "for-each" style
for loop at this point. |
JBlock |
BasicJBlock.forEach(int mods,
java.lang.String type,
java.lang.String name,
JExpr iterable) |
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 |
JClassDefSection.init()
Add a "raw" initialization block to this type definition.
|
JBlock |
JClassDefSectionImpl.init() |
JBlock |
ImplJAnonymousClassDef.init() |
JBlock |
AbstractJClassDef.init() |
JBlock |
AnnotationJClassDef.init(java.util.ArrayList<ClassContent> content) |
JBlock |
AbstractJClassDef.init(java.util.ArrayList<ClassContent> content) |
JBlock |
InterfaceJClassDef.init(java.util.ArrayList<ClassContent> content) |
JBlock |
Sectionable.init(java.util.ArrayList<ClassContent> content) |
JBlock |
JClassDefSection.staticInit()
Add a static initialization block to this type definition.
|
JBlock |
JClassDefSectionImpl.staticInit() |
JBlock |
ImplJAnonymousClassDef.staticInit() |
JBlock |
AbstractJClassDef.staticInit() |
JBlock |
AbstractJClassDef.staticInit(java.util.ArrayList<ClassContent> content) |
JBlock |
Sectionable.staticInit(java.util.ArrayList<ClassContent> content) |