| Package | Description |
|---|---|
| com.helger.jcodemodel |
Library for generating Java source code.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IJExpressionStatement
Expressions which can stand alone as statements, such as a += b; or ++i;
|
| Modifier and Type | Class and Description |
|---|---|
class |
JAssignment
Assignment statements, which are also expressions.
|
class |
JBlock
A block of Java code, which may contain statements and local declarations.
|
class |
JBreak
JBreak statement
|
class |
JCase
Case statement
|
class |
JConditional
If statement, with optional else clause
|
class |
JContinue
JContinue statement
|
class |
JDirectStatement
This class represents a single direct statement.
|
class |
JDoLoop
Do loops
|
class |
JForEach
ForEach Statement This will generate the code for statement based on the new
j2se 1.5 j.l.s.
|
class |
JForLoop
For statement
|
class |
JInvocation
JMethod invocation |
class |
JLabel
Label that can be used for continue and break.
|
class |
JLambdaBlock
A special JBlock implementation that supports lambda expressions.
|
class |
JReturn
A return statement
|
class |
JSwitch
Switch statement
|
class |
JSynchronizedBlock
Synchronized block within a method statement
|
class |
JThrow
JThrow statement
|
class |
JTryBlock
Try statement with Catch and/or Finally clause
|
class |
JWhileLoop
While statement
|
| Modifier and Type | Method and Description |
|---|---|
IJStatement |
JBlock.directStatement(String sSource)
Creates a "literal" statement directly.
|
| Modifier and Type | Method and Description |
|---|---|
JConditional |
JBlock._if(IJExpression aTestExpr,
IJStatement aThen)
Create an If statement with the respective then statement and add it to
this block
|
JConditional |
JBlock._if(IJExpression aTestExpr,
IJStatement aThen,
IJStatement aElse)
Create an If statement with the respective then and else statements and add
it to this block
|
JBlock |
JBlock.add(IJStatement s)
Adds a statement to this block
|
JFormatter |
JFormatter.statement(IJStatement s)
Cause the JStatement to generate source for itself
|
Copyright © 2013–2015 Philip Helger. All rights reserved.