Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
Modifier and Type | Method | Description |
---|---|---|
JFormatter |
JFormatter.b(JVar v) |
Cause the JVar to generate source for itself
|
JFormatter |
JFormatter.d(JDeclaration d) |
Cause the JDeclaration to generate source for itself
|
JFormatter |
JFormatter.g(JGenerable g) |
Cause the JGenerable object to generate source for iteself
|
JFormatter |
JFormatter.g(Collection<? extends JGenerable> list) |
Produces
JGenerable s separated by ',' |
JFormatter |
JExportsDirective.generate(JFormatter f) |
Print source code of this module directive.
|
JFormatter |
JModule.generate(JFormatter f) |
Print source code of Java Module declaration.
|
abstract JFormatter |
JModuleDirective.generate(JFormatter f) |
Print source code of this module directive.
|
JFormatter |
JRequiresDirective.generate(JFormatter f) |
Print source code of this module directive.
|
JFormatter |
JFormatter.i() |
Increment the indentation level.
|
JFormatter |
JFormatter.id(String id) |
Print an identifier
|
JFormatter |
JFormatter.nl() |
Print a new line into the stream
|
JFormatter |
JFormatter.o() |
Decrement the indentation level.
|
JFormatter |
JFormatter.p(char c) |
Print a char into the stream
|
JFormatter |
JFormatter.p(String s) |
Print a String into the stream
|
JFormatter |
JFormatter.s(JStatement s) |
Cause the JStatement to generate source for itself
|
JFormatter |
JFormatter.t(JClass type) |
Print a type name.
|
JFormatter |
JFormatter.t(JType type) |
Modifier and Type | Method | Description |
---|---|---|
void |
JVar.bind(JFormatter f) |
|
void |
JDeclaration.declare(JFormatter f) |
|
void |
JDefinedClass.declare(JFormatter f) |
|
void |
JEnumConstant.declare(JFormatter f) |
|
void |
JFieldVar.declare(JFormatter f) |
|
void |
JMethod.declare(JFormatter f) |
|
void |
JPackage.declare(JFormatter f) |
|
void |
JTypeVar.declare(JFormatter f) |
Prints out the declaration of the variable.
|
void |
JVar.declare(JFormatter f) |
|
protected void |
JDefinedClass.declareBody(JFormatter f) |
prints the body of a class.
|
protected void |
JCommentPart.format(JFormatter f,
String indent) |
Writes this part into the formatter by using the specified indentation.
|
void |
JAnnotationArrayMember.generate(JFormatter f) |
|
void |
JAnnotationUse.generate(JFormatter f) |
|
void |
JArray.generate(JFormatter f) |
|
void |
JAssignment.generate(JFormatter f) |
|
void |
JBlock.generate(JFormatter f) |
|
void |
JCatchBlock.generate(JFormatter f) |
|
void |
JClass.generate(JFormatter f) |
|
void |
JDocComment.generate(JFormatter f) |
|
void |
JEnumConstant.generate(JFormatter f) |
|
JFormatter |
JExportsDirective.generate(JFormatter f) |
Print source code of this module directive.
|
void |
JFieldRef.generate(JFormatter f) |
|
void |
JGenerable.generate(JFormatter f) |
|
void |
JInvocation.generate(JFormatter f) |
|
void |
JMods.generate(JFormatter f) |
|
JFormatter |
JModule.generate(JFormatter f) |
Print source code of Java Module declaration.
|
abstract JFormatter |
JModuleDirective.generate(JFormatter f) |
Print source code of this module directive.
|
void |
JPackage.generate(JFormatter f) |
|
void |
JPrimitiveType.generate(JFormatter f) |
|
JFormatter |
JRequiresDirective.generate(JFormatter f) |
Print source code of this module directive.
|
void |
JStringLiteral.generate(JFormatter f) |
|
void |
JTypeVar.generate(JFormatter f) |
|
void |
JVar.generate(JFormatter f) |
|
protected void |
JRequiresDirective.generateModifiers(JFormatter f) |
Print source code of
requires module directive modifiers:
public and static keywords for module dependency. |
void |
JAssignment.state(JFormatter f) |
|
void |
JBlock.state(JFormatter f) |
|
void |
JCase.state(JFormatter f) |
|
void |
JConditional.state(JFormatter f) |
|
void |
JDoLoop.state(JFormatter f) |
|
void |
JForEach.state(JFormatter f) |
|
void |
JForLoop.state(JFormatter f) |
|
void |
JInvocation.state(JFormatter f) |
|
void |
JLabel.state(JFormatter f) |
|
void |
JStatement.state(JFormatter f) |
|
void |
JSwitch.state(JFormatter f) |
|
void |
JTryBlock.state(JFormatter f) |
|
void |
JWhileLoop.state(JFormatter f) |
Copyright © 2018 Oracle Corporation. All rights reserved.