Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
Modifier and Type | Method and 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(Collection<? extends JGenerable> list)
Produces
JGenerable s separated by ',' |
JFormatter |
JFormatter.g(JGenerable g)
Cause the JGenerable object to generate source for iteself
|
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 and Description |
---|---|
void |
JVar.bind(JFormatter f) |
void |
JVar.declare(JFormatter f) |
void |
JTypeVar.declare(JFormatter f)
Prints out the declaration of the variable.
|
void |
JPackage.declare(JFormatter f) |
void |
JMethod.declare(JFormatter f) |
void |
JFieldVar.declare(JFormatter f) |
void |
JEnumConstant.declare(JFormatter f) |
void |
JDefinedClass.declare(JFormatter f) |
void |
JDeclaration.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 |
JVar.generate(JFormatter f) |
void |
JTypeVar.generate(JFormatter f) |
void |
JStringLiteral.generate(JFormatter f) |
void |
JPrimitiveType.generate(JFormatter f) |
void |
JPackage.generate(JFormatter f) |
void |
JMods.generate(JFormatter f) |
void |
JInvocation.generate(JFormatter f) |
void |
JGenerable.generate(JFormatter f) |
void |
JFieldRef.generate(JFormatter f) |
void |
JEnumConstant.generate(JFormatter f) |
void |
JDocComment.generate(JFormatter f) |
void |
JClass.generate(JFormatter f) |
void |
JCatchBlock.generate(JFormatter f) |
void |
JBlock.generate(JFormatter f) |
void |
JAssignment.generate(JFormatter f) |
void |
JArray.generate(JFormatter f) |
void |
JAnnotationUse.generate(JFormatter f) |
void |
JAnnotationArrayMember.generate(JFormatter f) |
void |
JWhileLoop.state(JFormatter f) |
void |
JTryBlock.state(JFormatter f) |
void |
JSwitch.state(JFormatter f) |
void |
JStatement.state(JFormatter f) |
void |
JLabel.state(JFormatter f) |
void |
JInvocation.state(JFormatter f) |
void |
JForLoop.state(JFormatter f) |
void |
JForEach.state(JFormatter f) |
void |
JDoLoop.state(JFormatter f) |
void |
JConditional.state(JFormatter f) |
void |
JCase.state(JFormatter f) |
void |
JBlock.state(JFormatter f) |
void |
JAssignment.state(JFormatter f) |
Copyright © 2017 JBoss by Red Hat. All rights reserved.