Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
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 |
JCase
Case statement
|
class |
JConditional
If statement, with optional else clause
|
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 |
JSwitch
Switch statement
|
class |
JTryBlock
Try statement with Catch and/or Finally clause
|
class |
JWhileLoop
While statement
|
Modifier and Type | Method and Description |
---|---|
JStatement |
JBlock.directStatement(String source)
Creates a "literal" statement directly.
|
Modifier and Type | Method and Description |
---|---|
JBlock |
JBlock.add(JStatement s)
Adds a statement to this block
|
JFormatter |
JFormatter.s(JStatement s)
Cause the JStatement to generate source for itself
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.