A B C D E F G H I J L M N O P Q R S T U V W X Z _ 

A

ABSTRACT - Static variable in class com.sun.codemodel.JMod
 
add(JExpression) - Method in class com.sun.codemodel.JArray
Add an element to the array initializer
add(JStatement) - Method in class com.sun.codemodel.JBlock
Adds a statement to this block
add(Object) - Method in class com.sun.codemodel.JCommentPart
 
add(String, String) - Method in class com.sun.codemodel.fmt.JPropertyFile
Adds key/value pair into the property file.
addDeprecated() - Method in class com.sun.codemodel.JDocComment
add an @deprecated tag to the javadoc, with the associated message.
addParam(JVar) - Method in class com.sun.codemodel.JDocComment
Append a text to an @param tag.
addParam(String) - Method in class com.sun.codemodel.JDocComment
Append a text to a @param tag to the javadoc
addResourceFile(JResourceFile) - Method in class com.sun.codemodel.JPackage
Adds a new resource file to this package.
addReturn() - Method in class com.sun.codemodel.JDocComment
Appends a text to @return tag.
addThrows(JClass) - Method in class com.sun.codemodel.JDocComment
add an @throws tag to the javadoc
addThrows(Class<? extends Throwable>) - Method in class com.sun.codemodel.JDocComment
add an @throws tag to the javadoc
addXdoclet(String) - Method in class com.sun.codemodel.JDocComment
add an xdoclet.
addXdoclet(String, String, String) - Method in class com.sun.codemodel.JDocComment
add an xdoclet.
addXdoclet(String, Map<String, String>) - Method in class com.sun.codemodel.JDocComment
add an xdoclet.
annotate(JClass) - Method in interface com.sun.codemodel.JAnnotatable
Adds an annotation to this program element.
annotate(JClass) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds a new annotation to the array.
annotate(JClass) - Method in class com.sun.codemodel.JDefinedClass
Adding ability to annotate a class
annotate(JClass) - Method in class com.sun.codemodel.JEnumConstant
Adds an annotation to this variable.
annotate(JClass) - Method in class com.sun.codemodel.JMethod
Adds an annotation to this variable.
annotate(JClass) - Method in class com.sun.codemodel.JPackage
 
annotate(JClass) - Method in class com.sun.codemodel.JVar
Adds an annotation to this variable.
annotate(Class<? extends Annotation>) - Method in interface com.sun.codemodel.JAnnotatable
Adds an annotation to this program element.
annotate(Class<? extends Annotation>) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds a new annotation to the array.
annotate(Class<? extends Annotation>) - Method in class com.sun.codemodel.JAnnotationUse
annotate(Class<? extends Annotation>) - Method in class com.sun.codemodel.JDefinedClass
Adding ability to annotate a class
annotate(Class<? extends Annotation>) - Method in class com.sun.codemodel.JEnumConstant
Adds an annotation to this variable.
annotate(Class<? extends Annotation>) - Method in class com.sun.codemodel.JMethod
Adds an annotation to this variable.
annotate(Class<? extends Annotation>) - Method in class com.sun.codemodel.JPackage
 
annotate(Class<? extends Annotation>) - Method in class com.sun.codemodel.JVar
Adds an annotation to this variable.
annotate2(Class<W>) - Method in interface com.sun.codemodel.JAnnotatable
Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.
annotate2(Class<W>) - Method in class com.sun.codemodel.JAnnotationArrayMember
 
annotate2(Class<W>) - Method in class com.sun.codemodel.JDefinedClass
 
annotate2(Class<W>) - Method in class com.sun.codemodel.JEnumConstant
 
annotate2(Class<W>) - Method in class com.sun.codemodel.JMethod
 
annotate2(Class<W>) - Method in class com.sun.codemodel.JPackage
 
annotate2(Class<W>) - Method in class com.sun.codemodel.JVar
 
ANNOTATION_TYPE_DECL - Static variable in class com.sun.codemodel.ClassType
 
annotationParam(String, Class<? extends Annotation>) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation For adding class values as param
annotations() - Method in interface com.sun.codemodel.JAnnotatable
Read-only live view of all annotations on this JAnnotatable
annotations() - Method in class com.sun.codemodel.JAnnotationArrayMember
annotations() - Method in class com.sun.codemodel.JDefinedClass
annotations() - Method in class com.sun.codemodel.JEnumConstant
annotations() - Method in class com.sun.codemodel.JMethod
 
annotations() - Method in class com.sun.codemodel.JPackage
 
annotations() - Method in class com.sun.codemodel.JVar
 
anonymousClass(JClass) - Method in class com.sun.codemodel.JCodeModel
Creates a new anonymous class.
anonymousClass(Class<?>) - Method in class com.sun.codemodel.JCodeModel
 
append(Object) - Method in class com.sun.codemodel.JCommentPart
Appends a new value.
append(Object) - Method in class com.sun.codemodel.JDocComment
 
arg(JExpression) - Method in class com.sun.codemodel.JEnumConstant
Add an expression to this constructor's argument list
arg(JExpression) - Method in class com.sun.codemodel.JInvocation
Add an expression to this invocation's argument list
arg(String) - Method in class com.sun.codemodel.JInvocation
Adds a literal argument.
array() - Method in class com.sun.codemodel.JClass
 
array() - Method in class com.sun.codemodel.JPrimitiveType
 
array() - Method in class com.sun.codemodel.JType
Create an array type of this type.
assign(JAssignmentTarget, JExpression) - Method in class com.sun.codemodel.JBlock
Creates an assignment statement and adds it to this block.
assign(JAssignmentTarget, JExpression) - Static method in class com.sun.codemodel.JExpr
 
assign(JExpression) - Method in interface com.sun.codemodel.JAssignmentTarget
 
assign(JExpression) - Method in class com.sun.codemodel.JFieldRef
 
assign(JExpression) - Method in class com.sun.codemodel.JVar
 
assignPlus(JAssignmentTarget, JExpression) - Method in class com.sun.codemodel.JBlock
 
assignPlus(JAssignmentTarget, JExpression) - Static method in class com.sun.codemodel.JExpr
 
assignPlus(JExpression) - Method in interface com.sun.codemodel.JAssignmentTarget
 
assignPlus(JExpression) - Method in class com.sun.codemodel.JFieldRef
 
assignPlus(JExpression) - Method in class com.sun.codemodel.JVar
 

B

b(JVar) - Method in class com.sun.codemodel.JFormatter
Cause the JVar to generate source for itself
band(JExpression) - Method in interface com.sun.codemodel.JExpression
Bit-wise AND '&'.
band(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
band(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
binaryName() - Method in class com.sun.codemodel.JDefinedClass
 
binaryName() - Method in class com.sun.codemodel.JType
Gets the binary name of the type.
bind(JFormatter) - Method in class com.sun.codemodel.JVar
 
block() - Method in class com.sun.codemodel.JBlock
Create a sub-block and add it to this block
body() - Method in class com.sun.codemodel.JCase
 
body() - Method in class com.sun.codemodel.JCatchBlock
 
body() - Method in class com.sun.codemodel.JDoLoop
 
body() - Method in class com.sun.codemodel.JForEach
 
body() - Method in class com.sun.codemodel.JForLoop
 
body() - Method in class com.sun.codemodel.JMethod
Get the block that makes up body of this method
body() - Method in class com.sun.codemodel.JTryBlock
 
body() - Method in class com.sun.codemodel.JWhileLoop
 
BOOLEAN - Variable in class com.sun.codemodel.JCodeModel
 
bor(JExpression) - Method in interface com.sun.codemodel.JExpression
Bit-wise OR '|'.
bor(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
bor(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
bound(JClass) - Method in class com.sun.codemodel.JTypeVar
Adds a bound to this variable.
boxify() - Method in class com.sun.codemodel.JClass
Deprecated.
calling this method from JClass would be meaningless, since it's always guaranteed to return this.
boxify() - Method in class com.sun.codemodel.JPrimitiveType
Obtains the wrapper class for this primitive type.
boxify() - Method in class com.sun.codemodel.JType
If this class is a primitive type, return the boxed class.
boxToPrimitive - Static variable in class com.sun.codemodel.JCodeModel
The reverse look up for JCodeModel.primitiveToBox
build(CodeWriter) - Method in class com.sun.codemodel.JCodeModel
A convenience method for build(out,out).
build(CodeWriter, CodeWriter) - Method in class com.sun.codemodel.JCodeModel
Generates Java source code.
build(File) - Method in class com.sun.codemodel.JCodeModel
A convenience method for build(destDir,System.out).
build(File, File) - Method in class com.sun.codemodel.JCodeModel
A convenience method for build(srcDir,resourceDir,System.out).
build(File, File, PrintStream) - Method in class com.sun.codemodel.JCodeModel
Generates Java source code.
build(File, PrintStream) - Method in class com.sun.codemodel.JCodeModel
Generates Java source code.
build(OutputStream) - Method in class com.sun.codemodel.fmt.JBinaryFile
 
build(OutputStream) - Method in class com.sun.codemodel.fmt.JPropertyFile
 
build(OutputStream) - Method in class com.sun.codemodel.fmt.JSerializedObject
called by JPackage to serialize the object
build(OutputStream) - Method in class com.sun.codemodel.fmt.JStaticFile
 
build(OutputStream) - Method in class com.sun.codemodel.fmt.JStaticJavaFile
 
build(OutputStream) - Method in class com.sun.codemodel.fmt.JTextFile
 
build(OutputStream) - Method in class com.sun.codemodel.JResourceFile
called by JPackage to produce the file image.
BYTE - Variable in class com.sun.codemodel.JCodeModel
 

C

cand(JExpression) - Method in interface com.sun.codemodel.JExpression
Logical AND '&&'.
cand(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
cand(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
cases() - Method in class com.sun.codemodel.JSwitch
 
cast(JType, JExpression) - Static method in class com.sun.codemodel.JExpr
 
ChainFilter(JStaticJavaFile.LineFilter, JStaticJavaFile.LineFilter) - Constructor for class com.sun.codemodel.fmt.JStaticJavaFile.ChainFilter
 
CHAR - Variable in class com.sun.codemodel.JCodeModel
 
CLASS - Static variable in class com.sun.codemodel.ClassType
 
classes() - Method in interface com.sun.codemodel.JClassContainer
Returns an iterator that walks the nested classes defined in this class.
classes() - Method in class com.sun.codemodel.JDefinedClass
Returns an iterator that walks the nested classes defined in this class.
classes() - Method in class com.sun.codemodel.JPackage
Returns an iterator that walks the top-level classes defined in this package.
ClassNameComparator - Class in com.sun.codemodel.util
Comparator object that sorts JClasses in the order of their names.
ClassType - Class in com.sun.codemodel
This helps enable whether the JDefinedClass is a Class or Interface or AnnotationTypeDeclaration or Enum
close() - Method in class com.sun.codemodel.CodeWriter
Called by CodeModel at the end of the process.
close() - Method in class com.sun.codemodel.JFormatter
Closes this formatter.
close() - Method in class com.sun.codemodel.writer.FileCodeWriter
 
close() - Method in class com.sun.codemodel.writer.FilterCodeWriter
 
close() - Method in class com.sun.codemodel.writer.OutputStreamCodeWriter
 
close() - Method in class com.sun.codemodel.writer.SingleStreamCodeWriter
 
close() - Method in class com.sun.codemodel.writer.ZipCodeWriter
 
CodeWriter - Class in com.sun.codemodel
Receives generated code and writes to the appropriate storage.
CodeWriter() - Constructor for class com.sun.codemodel.CodeWriter
 
com.sun.codemodel - module com.sun.codemodel
JAXB Library for code generation.
com.sun.codemodel - package com.sun.codemodel
Library for generating Java source code
com.sun.codemodel.fmt - package com.sun.codemodel.fmt
Various resource file formats (classes that implement JResourceFile).
com.sun.codemodel.util - package com.sun.codemodel.util
 
com.sun.codemodel.writer - package com.sun.codemodel.writer
 
compare(JClass, JClass) - Method in class com.sun.codemodel.util.ClassNameComparator
 
compareTo(JPackage) - Method in class com.sun.codemodel.JPackage
Order is based on the lexicological order of the package name.
compareTo(JType) - Method in class com.sun.codemodel.JType
Compare two JTypes by FQCN, giving sorting precedence to types that belong to packages java and javax over all others.
complement() - Method in interface com.sun.codemodel.JExpression
Returns "~[this]" from "[this]".
complement() - Method in class com.sun.codemodel.JExpressionImpl
 
complement(JExpression) - Static method in class com.sun.codemodel.JOp
 
component(JExpression) - Method in interface com.sun.codemodel.JExpression
 
component(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
component(JExpression, JExpression) - Static method in class com.sun.codemodel.JExpr
 
cond(JExpression, JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
constructor(int) - Method in class com.sun.codemodel.JDefinedClass
Adds a constructor to this class.
constructors() - Method in class com.sun.codemodel.JDefinedClass
Returns an iterator that walks the constructors defined in this class.
cor(JExpression) - Method in interface com.sun.codemodel.JExpression
Logical OR '||'.
cor(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
cor(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
core - Variable in class com.sun.codemodel.writer.FilterCodeWriter
 
countArtifacts() - Method in class com.sun.codemodel.JCodeModel
Returns the number of files to be generated if JCodeModel.build(java.io.File, java.io.PrintStream) is invoked now.
createEncoder(String) - Static method in class com.sun.codemodel.util.EncoderFactory
 

D

d(JDeclaration) - Method in class com.sun.codemodel.JFormatter
Cause the JDeclaration to generate source for itself
decl(int, JType, String, JExpression) - Method in class com.sun.codemodel.JBlock
Adds a local variable declaration to this block
decl(JType, String) - Method in class com.sun.codemodel.JBlock
Adds a local variable declaration to this block
decl(JType, String, JExpression) - Method in class com.sun.codemodel.JBlock
Adds a local variable declaration to this block
declare(JFormatter) - Method in interface com.sun.codemodel.JDeclaration
 
declare(JFormatter) - Method in class com.sun.codemodel.JDefinedClass
 
declare(JFormatter) - Method in class com.sun.codemodel.JEnumConstant
 
declare(JFormatter) - Method in class com.sun.codemodel.JFieldVar
 
declare(JFormatter) - Method in class com.sun.codemodel.JMethod
 
declare(JFormatter) - Method in class com.sun.codemodel.JPackage
 
declare(JFormatter) - Method in class com.sun.codemodel.JTypeVar
Prints out the declaration of the variable.
declare(JFormatter) - Method in class com.sun.codemodel.JVar
 
declareBody(JFormatter) - Method in class com.sun.codemodel.JDefinedClass
prints the body of a class.
declareDefaultValue(JExpression) - Method in class com.sun.codemodel.JMethod
Specify the default value for this annotation member
decr() - Method in interface com.sun.codemodel.JExpression
Returns "[this]--" from "[this]".
decr() - Method in class com.sun.codemodel.JExpressionImpl
 
decr(JExpression) - Static method in class com.sun.codemodel.JOp
 
direct(String) - Method in class com.sun.codemodel.JDefinedClass
Places the given string directly inside the generated class.
direct(String) - Static method in class com.sun.codemodel.JExpr
Creates an expression directly from a source code fragment.
directClass(String) - Method in class com.sun.codemodel.JCodeModel
Creates a dummy, unknown JClass that represents a given name.
directStatement(String) - Method in class com.sun.codemodel.JBlock
Creates a "literal" statement directly.
div(JExpression) - Method in interface com.sun.codemodel.JExpression
Returns "[this]/[right]"
div(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
div(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
dotclass() - Method in class com.sun.codemodel.JClass
 
dotclass(JClass) - Static method in class com.sun.codemodel.JExpr
 
DOUBLE - Variable in class com.sun.codemodel.JCodeModel
 

E

elementType() - Method in class com.sun.codemodel.JType
If this is an array, returns the component type of the array.
EMPTY_ARRAY - Static variable in class com.sun.codemodel.JClass
Sometimes useful reusable empty array.
EncoderFactory - Class in com.sun.codemodel.util
Creates CharsetEncoder from a charset name.
EncoderFactory() - Constructor for class com.sun.codemodel.util.EncoderFactory
 
encoding - Variable in class com.sun.codemodel.CodeWriter
Encoding to be used by the writer.
ENUM - Static variable in class com.sun.codemodel.ClassType
 
enumConstant(String) - Method in class com.sun.codemodel.JDefinedClass
If the named enum already exists, the reference to it is returned.
eq(JExpression) - Method in interface com.sun.codemodel.JExpression
 
eq(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
eq(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
equals(Object) - Method in class com.sun.codemodel.JModuleDirective
Compares this module directive to the specified object.
erasure() - Method in class com.sun.codemodel.JClass
 
erasure() - Method in class com.sun.codemodel.JType
Returns the erasure of this type.
ExportsDirective - com.sun.codemodel.JModuleDirective.Type
Directive starting with exports keyword.

F

FALSE - Static variable in class com.sun.codemodel.JExpr
Boolean constant that represents false
field(int, JType, String) - Method in class com.sun.codemodel.JDefinedClass
Adds a field to the list of field members of this JDefinedClass.
field(int, JType, String, JExpression) - Method in class com.sun.codemodel.JDefinedClass
Adds a field to the list of field members of this JDefinedClass.
field(int, Class<?>, String) - Method in class com.sun.codemodel.JDefinedClass
 
field(int, Class<?>, String, JExpression) - Method in class com.sun.codemodel.JDefinedClass
 
fields() - Method in class com.sun.codemodel.JDefinedClass
Returns all the fields declred in this class.
FileCodeWriter - Class in com.sun.codemodel.writer
Writes all the source files under the specified file folder.
FileCodeWriter(File) - Constructor for class com.sun.codemodel.writer.FileCodeWriter
 
FileCodeWriter(File, boolean) - Constructor for class com.sun.codemodel.writer.FileCodeWriter
 
FileCodeWriter(File, boolean, String) - Constructor for class com.sun.codemodel.writer.FileCodeWriter
 
FileCodeWriter(File, String) - Constructor for class com.sun.codemodel.writer.FileCodeWriter
 
FilterCodeWriter - Class in com.sun.codemodel.writer
CodeWriter that delegates to another CodeWriter.
FilterCodeWriter(CodeWriter) - Constructor for class com.sun.codemodel.writer.FilterCodeWriter
 
FINAL - Static variable in class com.sun.codemodel.JMod
 
FLOAT - Variable in class com.sun.codemodel.JCodeModel
 
forEach(JType, String, JExpression) - Method in class com.sun.codemodel.JBlock
Creates an enhanced For statement based on j2se 1.5 JLS and add it to this block
format(JFormatter, String) - Method in class com.sun.codemodel.JCommentPart
Writes this part into the formatter by using the specified indentation.
fullName() - Method in class com.sun.codemodel.JDefinedClass
Gets the fully qualified name of this class.
fullName() - Method in class com.sun.codemodel.JNullType
 
fullName() - Method in class com.sun.codemodel.JPrimitiveType
 
fullName() - Method in class com.sun.codemodel.JType
Gets the full name of the type.
fullName() - Method in class com.sun.codemodel.JTypeVar
 

G

g(JGenerable) - Method in class com.sun.codemodel.JFormatter
Cause the JGenerable object to generate source for iteself
g(Collection<? extends JGenerable>) - Method in class com.sun.codemodel.JFormatter
Produces JGenerables separated by ','
generate(JFormatter) - Method in class com.sun.codemodel.JAnnotationArrayMember
 
generate(JFormatter) - Method in class com.sun.codemodel.JAnnotationUse
 
generate(JFormatter) - Method in class com.sun.codemodel.JArray
 
generate(JFormatter) - Method in class com.sun.codemodel.JAssignment
 
generate(JFormatter) - Method in class com.sun.codemodel.JBlock
 
generate(JFormatter) - Method in class com.sun.codemodel.JCatchBlock
 
generate(JFormatter) - Method in class com.sun.codemodel.JClass
 
generate(JFormatter) - Method in class com.sun.codemodel.JDocComment
 
generate(JFormatter) - Method in class com.sun.codemodel.JEnumConstant
 
generate(JFormatter) - Method in class com.sun.codemodel.JExportsDirective
Print source code of this module directive.
generate(JFormatter) - Method in class com.sun.codemodel.JFieldRef
 
generate(JFormatter) - Method in interface com.sun.codemodel.JGenerable
 
generate(JFormatter) - Method in class com.sun.codemodel.JInvocation
 
generate(JFormatter) - Method in class com.sun.codemodel.JMods
 
generate(JFormatter) - Method in class com.sun.codemodel.JModule
Print source code of Java Module declaration.
generate(JFormatter) - Method in class com.sun.codemodel.JModuleDirective
Print source code of this module directive.
generate(JFormatter) - Method in class com.sun.codemodel.JPackage
 
generate(JFormatter) - Method in class com.sun.codemodel.JPrimitiveType
 
generate(JFormatter) - Method in class com.sun.codemodel.JRequiresDirective
Print source code of this module directive.
generate(JFormatter) - Method in class com.sun.codemodel.JStringLiteral
 
generate(JFormatter) - Method in class com.sun.codemodel.JTypeVar
 
generate(JFormatter) - Method in class com.sun.codemodel.JVar
 
generateModifiers(JFormatter) - Method in class com.sun.codemodel.JRequiresDirective
Print source code of requires module directive modifiers: public and static keywords for module dependency.
generify(String) - Method in class com.sun.codemodel.JDefinedClass
 
generify(String) - Method in interface com.sun.codemodel.JGenerifiable
Adds a new type variable to this declaration.
generify(String, JClass) - Method in class com.sun.codemodel.JDefinedClass
 
generify(String, JClass) - Method in interface com.sun.codemodel.JGenerifiable
Adds a new type variable to this declaration with a bound.
generify(String, Class<?>) - Method in class com.sun.codemodel.JDefinedClass
 
generify(String, Class<?>) - Method in interface com.sun.codemodel.JGenerifiable
Adds a new type variable to this declaration with a bound.
getAnnotationClass() - Method in class com.sun.codemodel.JAnnotationUse
 
getAnnotationMembers() - Method in class com.sun.codemodel.JAnnotationUse
 
getAnnotationType() - Method in interface com.sun.codemodel.JAnnotationWriter
The type of the annotation that this writer is writing.
getAnnotationUse() - Method in interface com.sun.codemodel.JAnnotationWriter
Gets the underlying annotation use object to which we are writing.
getBaseClass(JClass) - Method in class com.sun.codemodel.JClass
Gets the parameterization of the given base type.
getBaseClass(Class<?>) - Method in class com.sun.codemodel.JClass
 
getClassType() - Method in class com.sun.codemodel.JDefinedClass
 
getConstructor(JType[]) - Method in class com.sun.codemodel.JDefinedClass
Looks for a method that has the specified method signature and return it.
getContents() - Method in class com.sun.codemodel.JBlock
Returns a read-only view of JStatements and JDeclaration in this block.
getDataStore() - Method in class com.sun.codemodel.fmt.JBinaryFile
 
getExistingClass() - Method in exception com.sun.codemodel.JClassAlreadyExistsException
Gets a reference to the existing JDefinedClass.
getFile(JPackage, String) - Method in class com.sun.codemodel.writer.FileCodeWriter
 
getJClass() - Method in class com.sun.codemodel.fmt.JStaticJavaFile
Returns a class object that represents a statically generated code.
getMethod(String, JType[]) - Method in class com.sun.codemodel.JDefinedClass
Looks for a method that has the specified method signature and return it.
getMods() - Method in class com.sun.codemodel.JMethod
Deprecated.
getName() - Method in class com.sun.codemodel.JEnumConstant
Returns the name of this constant.
getPackage() - Method in interface com.sun.codemodel.JClassContainer
Gets the nearest package parent.
getPackage() - Method in class com.sun.codemodel.JDefinedClass
 
getPackage() - Method in class com.sun.codemodel.JPackage
 
getPluralForm(String) - Static method in class com.sun.codemodel.JJavaName
Experimental API: converts an English word into a plural form.
getPrimitiveType() - Method in class com.sun.codemodel.JClass
If this class represents one of the wrapper classes defined in the java.lang package, return the corresponding primitive type.
getType() - Method in class com.sun.codemodel.JExportsDirective
Gets the type of this module directive.
getType() - Method in class com.sun.codemodel.JModuleDirective
Gets the type of this module directive.
getType() - Method in class com.sun.codemodel.JRequiresDirective
Gets the type of this module directive.
getTypeParameters() - Method in class com.sun.codemodel.JClass
If this class is parameterized, return the type parameter of the given index.
getValue() - Method in class com.sun.codemodel.JMods
Gets the bit-packed representaion of modifiers.
getWrapperClass() - Method in class com.sun.codemodel.JPrimitiveType
Deprecated.
gt(JExpression) - Method in interface com.sun.codemodel.JExpression
 
gt(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
gt(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
gte(JExpression) - Method in interface com.sun.codemodel.JExpression
 
gte(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
gte(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 

H

hasClasses() - Method in class com.sun.codemodel.JPackage
Checks if this package contains any classes.
hashCode() - Method in class com.sun.codemodel.JModuleDirective
Returns a hash code for this module directive based on directive type and name.
hasResourceFile(String) - Method in class com.sun.codemodel.JPackage
Checks if a resource of the given name exists.
hasSignature(JType[]) - Method in class com.sun.codemodel.JMethod
Returns true if the method has the specified signature.
hasVarArgs() - Method in class com.sun.codemodel.JMethod
Check if there are any varargs declared for this method signature.
hide() - Method in class com.sun.codemodel.JDefinedClass
Mark this file as hidden, so that this file won't be generated.

I

i() - Method in class com.sun.codemodel.JFormatter
Increment the indentation level.
id(String) - Method in class com.sun.codemodel.JFormatter
Print an identifier
incr() - Method in interface com.sun.codemodel.JExpression
Returns "[this]++" from "[this]".
incr() - Method in class com.sun.codemodel.JExpressionImpl
 
incr(JExpression) - Static method in class com.sun.codemodel.JOp
 
init() - Method in class com.sun.codemodel.JDefinedClass
Creates, if necessary, and returns the static initializer for this class.
init(int, JType, String, JExpression) - Method in class com.sun.codemodel.JForLoop
 
init(JExpression) - Method in class com.sun.codemodel.JVar
Initialize this variable
init(JType, String, JExpression) - Method in class com.sun.codemodel.JForLoop
 
init(JVar, JExpression) - Method in class com.sun.codemodel.JForLoop
 
instanceInit() - Method in class com.sun.codemodel.JDefinedClass
Creates, if necessary, and returns the instance initializer for this class.
INT - Variable in class com.sun.codemodel.JCodeModel
 
INTERFACE - Static variable in class com.sun.codemodel.ClassType
 
invoke(JExpression, JMethod) - Method in class com.sun.codemodel.JBlock
Creates an invocation statement and adds it to this block.
invoke(JExpression, JMethod) - Static method in class com.sun.codemodel.JExpr
 
invoke(JExpression, String) - Method in class com.sun.codemodel.JBlock
Creates an invocation statement and adds it to this block.
invoke(JExpression, String) - Static method in class com.sun.codemodel.JExpr
 
invoke(JMethod) - Method in class com.sun.codemodel.JBlock
Creates an invocation statement and adds it to this block.
invoke(JMethod) - Static method in class com.sun.codemodel.JExpr
 
invoke(JMethod) - Method in interface com.sun.codemodel.JExpression
Returns "[this].[method]".
invoke(JMethod) - Method in class com.sun.codemodel.JExpressionImpl
 
invoke(String) - Method in class com.sun.codemodel.JBlock
Creates an invocation statement and adds it to this block.
invoke(String) - Static method in class com.sun.codemodel.JExpr
 
invoke(String) - Method in interface com.sun.codemodel.JExpression
Returns "[this].[method]".
invoke(String) - Method in class com.sun.codemodel.JExpressionImpl
 
isAbstract() - Method in class com.sun.codemodel.JClass
Checks if this class is an abstract class.
isAbstract() - Method in class com.sun.codemodel.JDefinedClass
 
isAbstract() - Method in class com.sun.codemodel.JMods
 
isAbstract() - Method in class com.sun.codemodel.JNullType
 
isAbstract() - Method in class com.sun.codemodel.JTypeVar
 
isAnnotated() - Method in class com.sun.codemodel.JVar
 
isAnnotationTypeDeclaration() - Method in class com.sun.codemodel.JDefinedClass
This method indicates if the interface is an annotationTypeDeclaration
isAnonymous() - Method in class com.sun.codemodel.JDefinedClass
Returns true if this is an anonymous class.
isArray() - Method in class com.sun.codemodel.JType
Tell whether or not this is an array type.
isAssignableFrom(JClass) - Method in class com.sun.codemodel.JClass
Checks the relationship between two classes.
isCaseSensitiveFileSystem - Static variable in class com.sun.codemodel.JCodeModel
If the flag is true, we will consider two classes "Foo" and "foo" as a collision.
isClass() - Method in interface com.sun.codemodel.JClassContainer
Returns true if the container is a class.
isClass() - Method in class com.sun.codemodel.JDefinedClass
 
isClass() - Method in class com.sun.codemodel.JPackage
 
isDefined(String) - Method in class com.sun.codemodel.JPackage
Checks if a given name is already defined as a class/interface
isEmpty() - Method in class com.sun.codemodel.JBlock
Returns true if this block is empty and does not contain any statement.
isFullyQualifiedClassName(String) - Static method in class com.sun.codemodel.JJavaName
Checks if the given string is a valid fully qualified name.
isHidden() - Method in class com.sun.codemodel.JDefinedClass
 
isInterface() - Method in class com.sun.codemodel.JClass
Checks if this object represents an interface.
isInterface() - Method in class com.sun.codemodel.JDefinedClass
 
isInterface() - Method in class com.sun.codemodel.JNullType
 
isInterface() - Method in class com.sun.codemodel.JTypeVar
 
isJavaIdentifier(String) - Static method in class com.sun.codemodel.JJavaName
Checks if a given string is usable as a Java identifier.
isJavaPackageName(String) - Static method in class com.sun.codemodel.JJavaName
Checks if the given string is a valid Java package name.
isNative() - Method in class com.sun.codemodel.JMods
 
isPackage() - Method in interface com.sun.codemodel.JClassContainer
Returns true if the container is a package.
isPackage() - Method in class com.sun.codemodel.JDefinedClass
 
isPackage() - Method in class com.sun.codemodel.JPackage
 
isParameterized() - Method in class com.sun.codemodel.JClass
Returns true if this class is a parameterized class.
isPrimitive() - Method in class com.sun.codemodel.JPrimitiveType
 
isPrimitive() - Method in class com.sun.codemodel.JType
Tell whether or not this is a built-in primitive type, such as int or void.
isPrinting() - Method in class com.sun.codemodel.JFormatter
Returns true if we are in the printing mode, where we actually produce text.
isReference() - Method in class com.sun.codemodel.JType
Returns true if this is a referenced type.
isResource() - Method in class com.sun.codemodel.fmt.JStaticFile
 
isResource() - Method in class com.sun.codemodel.fmt.JStaticJavaFile
 
isResource() - Method in class com.sun.codemodel.JResourceFile
Returns true if this file should be generated into the directory that the resource files go into.
isSynchronized() - Method in class com.sun.codemodel.JMods
 
isUnnamed() - Method in class com.sun.codemodel.JPackage
Checks if this package is the root, unnamed package.

J

JAnnotatable - Interface in com.sun.codemodel
Annotatable program elements.
JAnnotationArrayMember - Class in com.sun.codemodel
Represents an arrays as annotation members
JAnnotationUse - Class in com.sun.codemodel
Represents an annotation on a program element.
JAnnotationValue - Class in com.sun.codemodel
Things that can be values of an annotation element.
JAnnotationValue() - Constructor for class com.sun.codemodel.JAnnotationValue
 
JAnnotationWriter<A extends java.lang.annotation.Annotation> - Interface in com.sun.codemodel
Base interface for typed annotation writer.
JArray - Class in com.sun.codemodel
array creation and initialization.
JAssignment - Class in com.sun.codemodel
Assignment statements, which are also expressions.
JAssignmentTarget - Interface in com.sun.codemodel
Marker interface for code components that can be placed to the left of '=' in an assignment.
javadoc() - Method in class com.sun.codemodel.JDefinedClass
Creates, if necessary, and returns the class javadoc for this JDefinedClass
javadoc() - Method in interface com.sun.codemodel.JDocCommentable
 
javadoc() - Method in class com.sun.codemodel.JEnumConstant
Creates, if necessary, and returns the enum constant javadoc.
javadoc() - Method in class com.sun.codemodel.JFieldVar
Creates, if necessary, and returns the class javadoc for this JDefinedClass
javadoc() - Method in class com.sun.codemodel.JMethod
Creates, if necessary, and returns the class javadoc for this JDefinedClass
javadoc() - Method in class com.sun.codemodel.JPackage
Creates, if necessary, and returns the package javadoc for this JDefinedClass.
JavadocEscapeWriter - Class in com.sun.codemodel.util
Writer that escapes characters that are unsafe as Javadoc comments.
JavadocEscapeWriter(Writer) - Constructor for class com.sun.codemodel.util.JavadocEscapeWriter
 
JBinaryFile - Class in com.sun.codemodel.fmt
Allows the application to use OutputStream to define data that will be stored into a file.
JBinaryFile(String) - Constructor for class com.sun.codemodel.fmt.JBinaryFile
 
JBlock - Class in com.sun.codemodel
A block of Java code, which may contain statements and local declarations.
JBlock() - Constructor for class com.sun.codemodel.JBlock
 
JBlock(boolean, boolean) - Constructor for class com.sun.codemodel.JBlock
 
JCase - Class in com.sun.codemodel
Case statement
JCatchBlock - Class in com.sun.codemodel
Catch block for a try/catch/finally statement
JClass - Class in com.sun.codemodel
Represents a Java reference type, such as a class, an interface, an enum, an array type, a parameterized type.
JClass(JCodeModel) - Constructor for class com.sun.codemodel.JClass
 
JClassAlreadyExistsException - Exception in com.sun.codemodel
Indicates that the class is already created.
JClassAlreadyExistsException(JDefinedClass) - Constructor for exception com.sun.codemodel.JClassAlreadyExistsException
 
JClassContainer - Interface in com.sun.codemodel
The common aspect of a package and a class.
JCodeModel - Class in com.sun.codemodel
Root of the code DOM.
JCodeModel() - Constructor for class com.sun.codemodel.JCodeModel
 
JCommentPart - Class in com.sun.codemodel
A part is a part of a javadoc comment, and it is a list of values.
JCommentPart() - Constructor for class com.sun.codemodel.JCommentPart
 
JConditional - Class in com.sun.codemodel
If statement, with optional else clause
JDeclaration - Interface in com.sun.codemodel
Common interface for code components that can generate declarations of themselves.
JDefinedClass - Class in com.sun.codemodel
A generated Java class/interface/enum/....
JDocComment - Class in com.sun.codemodel
JavaDoc comment.
JDocComment(JCodeModel) - Constructor for class com.sun.codemodel.JDocComment
 
JDocCommentable - Interface in com.sun.codemodel
Program elements that can have Javadoc
JDoLoop - Class in com.sun.codemodel
Do loops
JEnumConstant - Class in com.sun.codemodel
Enum Constant.
JExportsDirective - Class in com.sun.codemodel
Represents a Java module exports directive.
JExpr - Class in com.sun.codemodel
Factory methods that generate various JExpressions.
JExpression - Interface in com.sun.codemodel
A Java expression.
JExpressionImpl - Class in com.sun.codemodel
Provides default implementations for JExpression.
JExpressionImpl() - Constructor for class com.sun.codemodel.JExpressionImpl
 
JFieldRef - Class in com.sun.codemodel
Field Reference
JFieldVar - Class in com.sun.codemodel
A field that can have a JDocComment associated with it
JForEach - Class in com.sun.codemodel
ForEach Statement This will generate the code for statement based on the new j2se 1.5 j.l.s.
JForEach(JType, String, JExpression) - Constructor for class com.sun.codemodel.JForEach
 
JForLoop - Class in com.sun.codemodel
For statement
JForLoop() - Constructor for class com.sun.codemodel.JForLoop
 
JFormatter - Class in com.sun.codemodel
This is a utility class for managing indentation and other basic formatting for PrintWriter.
JFormatter(PrintWriter) - Constructor for class com.sun.codemodel.JFormatter
Creates a formatter with default incremental indentations of four spaces.
JFormatter(PrintWriter, String) - Constructor for class com.sun.codemodel.JFormatter
Creates a JFormatter.
JFormatter(Writer) - Constructor for class com.sun.codemodel.JFormatter
Creates a formatter with default incremental indentations of four spaces.
JGenerable - Interface in com.sun.codemodel
Common interface for code components that can generate uses of themselves.
JGenerifiable - Interface in com.sun.codemodel
Declarations that can have type variables.
JInvocation - Class in com.sun.codemodel
JMethod invocation
JJavaName - Class in com.sun.codemodel
Utility methods that convert arbitrary strings into Java identifiers.
JJavaName() - Constructor for class com.sun.codemodel.JJavaName
 
JLabel - Class in com.sun.codemodel
Label that can be used for continue and break.
JMethod - Class in com.sun.codemodel
Java method.
JMod - Class in com.sun.codemodel
Modifier constants.
JMod() - Constructor for class com.sun.codemodel.JMod
 
JMods - Class in com.sun.codemodel
Modifier groups.
JModule - Class in com.sun.codemodel
Represents a Java module.
JModuleDirective - Class in com.sun.codemodel
Represents a Java module directive.
JModuleDirective.Type - Enum in com.sun.codemodel
Module directive type.
JNullType - Class in com.sun.codemodel
Special class object that represents the type of "null".
JOp - Class in com.sun.codemodel
JClass for generating expressions containing operators
JPackage - Class in com.sun.codemodel
A Java package.
JPrimitiveType - Class in com.sun.codemodel
Java built-in primitive types.
JPropertyFile - Class in com.sun.codemodel.fmt
A property file.
JPropertyFile(String) - Constructor for class com.sun.codemodel.fmt.JPropertyFile
 
JRequiresDirective - Class in com.sun.codemodel
Represents a Java module requires directive.
JResourceFile - Class in com.sun.codemodel
Represents a resource file in the application-specific file format.
JResourceFile(String) - Constructor for class com.sun.codemodel.JResourceFile
 
JSerializedObject - Class in com.sun.codemodel.fmt
A simple class that takes an object and serializes it into a file in the parent package with the given name.
JSerializedObject(String, Object) - Constructor for class com.sun.codemodel.fmt.JSerializedObject
 
JStatement - Interface in com.sun.codemodel
Common interface for code components that can generate uses of themselves as statements.
JStaticFile - Class in com.sun.codemodel.fmt
Allows an application to copy a resource file to the output.
JStaticFile(ClassLoader, String, boolean) - Constructor for class com.sun.codemodel.fmt.JStaticFile
 
JStaticFile(String) - Constructor for class com.sun.codemodel.fmt.JStaticFile
 
JStaticFile(String, boolean) - Constructor for class com.sun.codemodel.fmt.JStaticFile
 
JStaticJavaFile - Class in com.sun.codemodel.fmt
Statically generated Java soruce file.
JStaticJavaFile(JPackage, String, Class<?>, JStaticJavaFile.LineFilter) - Constructor for class com.sun.codemodel.fmt.JStaticJavaFile
 
JStaticJavaFile.ChainFilter - Class in com.sun.codemodel.fmt
JStaticJavaFile.LineFilter - Interface in com.sun.codemodel.fmt
Filter that alters the Java source code.
JStringLiteral - Class in com.sun.codemodel
String literal.
JSwitch - Class in com.sun.codemodel
Switch statement
JTextFile - Class in com.sun.codemodel.fmt
Simple text file.
JTextFile(String) - Constructor for class com.sun.codemodel.fmt.JTextFile
 
JTryBlock - Class in com.sun.codemodel
Try statement with Catch and/or Finally clause
JType - Class in com.sun.codemodel
A representation of a type in codeModel.
JType() - Constructor for class com.sun.codemodel.JType
 
JTypeVar - Class in com.sun.codemodel
Type variable used to declare generics.
JVar - Class in com.sun.codemodel
Variables and fields.
JWhileLoop - Class in com.sun.codemodel
While statement

L

label() - Method in class com.sun.codemodel.JCase
 
label(String) - Method in class com.sun.codemodel.JBlock
Create a label, which can be referenced from continue and break statements.
listArgs() - Method in class com.sun.codemodel.JInvocation
Returns all arguments of the invocation.
listClasses() - Method in class com.sun.codemodel.JDefinedClass
Returns all the nested classes defined in this class.
listParams() - Method in class com.sun.codemodel.JMethod
Returns all the parameters in an array.
listParamTypes() - Method in class com.sun.codemodel.JMethod
Returns all the parameter types in an array.
listVarParam() - Method in class com.sun.codemodel.JMethod
Returns the variable parameter
listVarParamType() - Method in class com.sun.codemodel.JMethod
Returns the varags parameter type.
lit(boolean) - Static method in class com.sun.codemodel.JExpr
 
lit(char) - Static method in class com.sun.codemodel.JExpr
 
lit(double) - Static method in class com.sun.codemodel.JExpr
 
lit(float) - Static method in class com.sun.codemodel.JExpr
 
lit(int) - Static method in class com.sun.codemodel.JExpr
 
lit(long) - Static method in class com.sun.codemodel.JExpr
 
lit(String) - Static method in class com.sun.codemodel.JExpr
 
LONG - Variable in class com.sun.codemodel.JCodeModel
 
lt(JExpression) - Method in interface com.sun.codemodel.JExpression
 
lt(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
lt(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
lte(JExpression) - Method in interface com.sun.codemodel.JExpression
 
lte(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
lte(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 

M

metadata - Variable in class com.sun.codemodel.JDefinedClass
Client-app spcific metadata associated with this user-created class.
method(int, JType, String) - Method in class com.sun.codemodel.JDefinedClass
Add a method to the list of method members of this JDefinedClass instance.
method(int, Class<?>, String) - Method in class com.sun.codemodel.JDefinedClass
 
methods() - Method in class com.sun.codemodel.JDefinedClass
Returns the set of methods defined in this class.
minus() - Method in interface com.sun.codemodel.JExpression
Returns "-[this]" from "[this]".
minus() - Method in class com.sun.codemodel.JExpressionImpl
 
minus(JExpression) - Method in interface com.sun.codemodel.JExpression
Returns "[this]-[right]"
minus(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
minus(JExpression) - Static method in class com.sun.codemodel.JOp
 
minus(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
mod(JExpression) - Method in interface com.sun.codemodel.JExpression
Returns "[this]%[right]"
mod(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
mod(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
mods() - Method in class com.sun.codemodel.JDefinedClass
 
mods() - Method in class com.sun.codemodel.JMethod
 
mods() - Method in class com.sun.codemodel.JVar
 
mul(JExpression) - Method in interface com.sun.codemodel.JExpression
Returns "[this]*[right]"
mul(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
mul(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 

N

name - Variable in class com.sun.codemodel.JModuleDirective
Name argument of module directive.
name() - Method in class com.sun.codemodel.JClass
Gets the name of this class.
name() - Method in class com.sun.codemodel.JDefinedClass
JClass name accessor.
name() - Method in class com.sun.codemodel.JMethod
 
name() - Method in class com.sun.codemodel.JModule
Gets the name of this module.
name() - Method in class com.sun.codemodel.JModuleDirective
Gets the name of this module directive.
name() - Method in class com.sun.codemodel.JNullType
 
name() - Method in class com.sun.codemodel.JPackage
Get the name of this package
name() - Method in class com.sun.codemodel.JPrimitiveType
 
name() - Method in class com.sun.codemodel.JResourceFile
Gets the name of this property file
name() - Method in class com.sun.codemodel.JType
Gets the name of this type.
name() - Method in class com.sun.codemodel.JTypeVar
 
name() - Method in class com.sun.codemodel.JVar
Get the name of this variable
name(String) - Method in class com.sun.codemodel.JFieldVar
 
name(String) - Method in class com.sun.codemodel.JMethod
Changes the name of the method.
name(String) - Method in class com.sun.codemodel.JVar
Changes the name of this variable.
narrow(JClass) - Method in class com.sun.codemodel.JClass
"Narrows" a generic class to a concrete class by specifying a type argument.
narrow(JClass...) - Method in class com.sun.codemodel.JClass
 
narrow(JType) - Method in class com.sun.codemodel.JClass
 
narrow(Class<?>) - Method in class com.sun.codemodel.JClass
"Narrows" a generic class to a concrete class by specifying a type argument.
narrow(Class<?>...) - Method in class com.sun.codemodel.JClass
 
narrow(List<? extends JClass>) - Method in class com.sun.codemodel.JClass
 
NATIVE - Static variable in class com.sun.codemodel.JMod
 
ne(JExpression) - Method in interface com.sun.codemodel.JExpression
 
ne(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
ne(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
newAnonymousClass(JClass) - Method in class com.sun.codemodel.JCodeModel
Deprecated.
The naming convention doesn't match the rest of the CodeModel. Use JCodeModel.anonymousClass(JClass) instead.
newArray(JType) - Static method in class com.sun.codemodel.JExpr
 
newArray(JType, int) - Static method in class com.sun.codemodel.JExpr
Generates new T[size].
newArray(JType, JExpression) - Static method in class com.sun.codemodel.JExpr
Generates new T[size].
nl() - Method in class com.sun.codemodel.JFormatter
Print a new line into the stream
NONE - Static variable in class com.sun.codemodel.JMod
 
not() - Method in interface com.sun.codemodel.JExpression
Returns "![this]" from "[this]".
not() - Method in class com.sun.codemodel.JExpressionImpl
Logical not '!x'.
not(JExpression) - Static method in class com.sun.codemodel.JOp
Logical not '!x'.
NULL - Variable in class com.sun.codemodel.JCodeModel
Obtains a reference to the special "null" type.

O

o() - Method in class com.sun.codemodel.JFormatter
Decrement the indentation level.
openBinary(JPackage, String) - Method in class com.sun.codemodel.CodeWriter
Called by CodeModel to store the specified file.
openBinary(JPackage, String) - Method in class com.sun.codemodel.writer.FileCodeWriter
 
openBinary(JPackage, String) - Method in class com.sun.codemodel.writer.FilterCodeWriter
 
openBinary(JPackage, String) - Method in class com.sun.codemodel.writer.OutputStreamCodeWriter
 
openBinary(JPackage, String) - Method in class com.sun.codemodel.writer.ProgressCodeWriter
 
openBinary(JPackage, String) - Method in class com.sun.codemodel.writer.SingleStreamCodeWriter
 
openBinary(JPackage, String) - Method in class com.sun.codemodel.writer.ZipCodeWriter
 
openSource(JPackage, String) - Method in class com.sun.codemodel.CodeWriter
Called by CodeModel to store the specified file.
openSource(JPackage, String) - Method in class com.sun.codemodel.writer.FilterCodeWriter
 
openSource(JPackage, String) - Method in class com.sun.codemodel.writer.ProgressCodeWriter
 
openSource(JPackage, String) - Method in class com.sun.codemodel.writer.PrologCodeWriter
 
outer() - Method in class com.sun.codemodel.JClass
Returns the class in which this class is nested, or null if this is a top-level class.
outer() - Method in class com.sun.codemodel.JDefinedClass
 
OutputStreamCodeWriter - Class in com.sun.codemodel.writer
 
OutputStreamCodeWriter(OutputStream, String) - Constructor for class com.sun.codemodel.writer.OutputStreamCodeWriter
 
owner() - Method in class com.sun.codemodel.JClass
Gets the JCodeModel object to which this object belongs.
owner() - Method in interface com.sun.codemodel.JClassContainer
Get the root code model object.
owner() - Method in class com.sun.codemodel.JMethod
 
owner() - Method in class com.sun.codemodel.JPackage
Return the code model root object being used to create this package.
owner() - Method in class com.sun.codemodel.JPrimitiveType
 
owner() - Method in class com.sun.codemodel.JType
Gets the owner code model object.

P

p(char) - Method in class com.sun.codemodel.JFormatter
Print a char into the stream
p(String) - Method in class com.sun.codemodel.JFormatter
Print a String into the stream
packages() - Method in class com.sun.codemodel.JCodeModel
Returns an iterator that walks the packages defined using this code writer.
param(boolean) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(byte) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(char) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(double) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(float) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(int) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(int, JType, String) - Method in class com.sun.codemodel.JMethod
Add the specified variable to the list of parameters for this method signature.
param(int, Class<?>, String) - Method in class com.sun.codemodel.JMethod
 
param(long) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(short) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(JAnnotationUse) - Method in class com.sun.codemodel.JAnnotationArrayMember
param(JEnumConstant) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds a enum array member to this annotation
param(JExpression) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an expression array member to this annotation
param(JType) - Method in class com.sun.codemodel.JAnnotationArrayMember
 
param(JType, String) - Method in class com.sun.codemodel.JMethod
 
param(Class<?>) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds a class array member to this annotation
param(Class<?>, String) - Method in class com.sun.codemodel.JMethod
 
param(Enum<?>) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds a enum array member to this annotation
param(String) - Method in class com.sun.codemodel.JAnnotationArrayMember
Adds an array member to this annotation
param(String) - Method in class com.sun.codemodel.JCatchBlock
 
param(String, boolean) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, byte) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, char) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, double) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, float) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, int) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, long) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, short) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, JEnumConstant) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, JExpression) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation.
param(String, JType) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation based on the type represented by the given JType
param(String, Class<?>) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation This can be used for e.g to specify
param(String, Enum<?>) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
param(String, String) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair to this annotation
paramArray(String) - Method in class com.sun.codemodel.JAnnotationUse
Adds a member value pair which is of type array to this annotation
params() - Method in class com.sun.codemodel.JMethod
Returns the list of variable of this method.
parent() - Method in class com.sun.codemodel.JPackage
Gets the parent package, or null if this class is the root package.
parentContainer() - Method in interface com.sun.codemodel.JClassContainer
Parent JClassContainer.
parentContainer() - Method in class com.sun.codemodel.JDefinedClass
 
parentContainer() - Method in class com.sun.codemodel.JPackage
 
parse(JCodeModel, String) - Static method in class com.sun.codemodel.JType
Obtains a reference to the primitive type object from a type name.
parseType(String) - Method in class com.sun.codemodel.JCodeModel
Obtains a type object from a type name.
plus(JExpression) - Method in interface com.sun.codemodel.JExpression
Returns "[this]+[right]"
plus(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
plus(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
pos() - Method in class com.sun.codemodel.JBlock
Gets the current position to which new statements will be inserted.
pos(int) - Method in class com.sun.codemodel.JBlock
Sets the current position.
primitiveToBox - Static variable in class com.sun.codemodel.JCodeModel
Conversion from primitive type Class (such as Integer.TYPE to its boxed type (such as Integer.class)
PRIVATE - Static variable in class com.sun.codemodel.JMod
 
process(String) - Method in class com.sun.codemodel.fmt.JStaticJavaFile.ChainFilter
 
process(String) - Method in interface com.sun.codemodel.fmt.JStaticJavaFile.LineFilter
 
ProgressCodeWriter - Class in com.sun.codemodel.writer
Filter CodeWriter that writes a progress message to the specified PrintStream.
ProgressCodeWriter(CodeWriter, PrintStream) - Constructor for class com.sun.codemodel.writer.ProgressCodeWriter
 
PrologCodeWriter - Class in com.sun.codemodel.writer
Writes all the source files under the specified file folder and inserts a file prolog comment in each java source file.
PrologCodeWriter(CodeWriter, String) - Constructor for class com.sun.codemodel.writer.PrologCodeWriter
 
propertyFiles() - Method in class com.sun.codemodel.JPackage
Iterates all resource files in this package.
PROTECTED - Static variable in class com.sun.codemodel.JMod
 
PUBLIC - Static variable in class com.sun.codemodel.JMod
 

Q

quotify(char, String) - Static method in class com.sun.codemodel.JExpr
Escapes the given string, then surrounds it by the specified quotation mark.

R

ref(JExpression, JVar) - Static method in class com.sun.codemodel.JExpr
 
ref(JExpression, String) - Static method in class com.sun.codemodel.JExpr
 
ref(JVar) - Method in interface com.sun.codemodel.JExpression
 
ref(JVar) - Method in class com.sun.codemodel.JExpressionImpl
 
ref(Class<?>) - Method in class com.sun.codemodel.JCodeModel
Obtains a reference to an existing class from its Class object.
ref(String) - Method in class com.sun.codemodel.JCodeModel
Obtains a reference to an existing class from its fully-qualified class name.
ref(String) - Static method in class com.sun.codemodel.JExpr
 
ref(String) - Method in interface com.sun.codemodel.JExpression
 
ref(String) - Method in class com.sun.codemodel.JExpressionImpl
 
ref(String) - Method in class com.sun.codemodel.JPackage
Reference a class within this package.
refthis(String) - Static method in class com.sun.codemodel.JExpr
 
remove(JClass) - Method in class com.sun.codemodel.JPackage
Removes a class from this package.
removeAnnotation(JAnnotationUse) - Method in interface com.sun.codemodel.JAnnotatable
Removes annotation from this program element.
removeAnnotation(JAnnotationUse) - Method in class com.sun.codemodel.JAnnotationArrayMember
 
removeAnnotation(JAnnotationUse) - Method in class com.sun.codemodel.JDefinedClass
 
removeAnnotation(JAnnotationUse) - Method in class com.sun.codemodel.JEnumConstant
 
removeAnnotation(JAnnotationUse) - Method in class com.sun.codemodel.JMethod
 
removeAnnotation(JAnnotationUse) - Method in class com.sun.codemodel.JPackage
 
removeAnnotation(JAnnotationUse) - Method in class com.sun.codemodel.JVar
 
removeField(JFieldVar) - Method in class com.sun.codemodel.JDefinedClass
Removes a JFieldVar from this class.
requireEscaping(int) - Method in class com.sun.codemodel.util.UnicodeEscapeWriter
Can be overrided.
RequiresDirective - com.sun.codemodel.JModuleDirective.Type
Directive starting with requires keyword.
rootPackage() - Method in class com.sun.codemodel.JCodeModel
 

S

s(JStatement) - Method in class com.sun.codemodel.JFormatter
Cause the JStatement to generate source for itself
setContents(String) - Method in class com.sun.codemodel.fmt.JTextFile
 
setFinal(boolean) - Method in class com.sun.codemodel.JMods
 
setPrivate() - Method in class com.sun.codemodel.JMods
 
setProtected() - Method in class com.sun.codemodel.JMods
 
setPublic() - Method in class com.sun.codemodel.JMods
 
setSynchronized(boolean) - Method in class com.sun.codemodel.JMods
 
shl(JExpression) - Method in interface com.sun.codemodel.JExpression
Returns "[this]<<[right]"
shl(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
shl(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
SHORT - Variable in class com.sun.codemodel.JCodeModel
 
shr(JExpression) - Method in interface com.sun.codemodel.JExpression
Returns "[this]>>[right]"
shr(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
shr(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
shrz(JExpression) - Method in interface com.sun.codemodel.JExpression
Returns "[this]>>>[right]"
shrz(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
shrz(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 
SingleStreamCodeWriter - Class in com.sun.codemodel.writer
Output all source files into a single stream with a little formatting header in front of each file.
SingleStreamCodeWriter(OutputStream) - Constructor for class com.sun.codemodel.writer.SingleStreamCodeWriter
 
state(JFormatter) - Method in class com.sun.codemodel.JAssignment
 
state(JFormatter) - Method in class com.sun.codemodel.JBlock
 
state(JFormatter) - Method in class com.sun.codemodel.JCase
 
state(JFormatter) - Method in class com.sun.codemodel.JConditional
 
state(JFormatter) - Method in class com.sun.codemodel.JDoLoop
 
state(JFormatter) - Method in class com.sun.codemodel.JForEach
 
state(JFormatter) - Method in class com.sun.codemodel.JForLoop
 
state(JFormatter) - Method in class com.sun.codemodel.JInvocation
 
state(JFormatter) - Method in class com.sun.codemodel.JLabel
 
state(JFormatter) - Method in interface com.sun.codemodel.JStatement
 
state(JFormatter) - Method in class com.sun.codemodel.JSwitch
 
state(JFormatter) - Method in class com.sun.codemodel.JTryBlock
 
state(JFormatter) - Method in class com.sun.codemodel.JWhileLoop
 
STATIC - Static variable in class com.sun.codemodel.JMod
 
staticInvoke(JClass, String) - Method in class com.sun.codemodel.JBlock
Creates a static invocation statement.
staticInvoke(JMethod) - Method in class com.sun.codemodel.JClass
Generates a static method invocation.
staticInvoke(String) - Method in class com.sun.codemodel.JClass
Generates a static method invocation.
staticRef(JVar) - Method in class com.sun.codemodel.JClass
Static field reference.
staticRef(String) - Method in class com.sun.codemodel.JClass
Static field reference.
str - Variable in class com.sun.codemodel.JStringLiteral
 
subPackage(String) - Method in class com.sun.codemodel.JPackage
Gets a reference to a sub package of this package.
substituteParams(JTypeVar[], List<JClass>) - Method in class com.sun.codemodel.JClass
Substitutes the type variables with their actual arguments.
substituteParams(JTypeVar[], List<JClass>) - Method in class com.sun.codemodel.JDefinedClass
 
substituteParams(JTypeVar[], List<JClass>) - Method in class com.sun.codemodel.JNullType
 
substituteParams(JTypeVar[], List<JClass>) - Method in class com.sun.codemodel.JTypeVar
 
SYNCHRONIZED - Static variable in class com.sun.codemodel.JMod
 

T

t(JClass) - Method in class com.sun.codemodel.JFormatter
Print a type name.
t(JType) - Method in class com.sun.codemodel.JFormatter
 
test() - Method in class com.sun.codemodel.JSwitch
 
test() - Method in class com.sun.codemodel.JWhileLoop
 
test(JExpression) - Method in class com.sun.codemodel.JForLoop
 
theInstance - Static variable in class com.sun.codemodel.util.ClassNameComparator
 
toString() - Method in class com.sun.codemodel.JClass
 
toString() - Method in class com.sun.codemodel.JMods
 
toString() - Method in class com.sun.codemodel.JType
 
TRANSIENT - Static variable in class com.sun.codemodel.JMod
 
TRUE - Static variable in class com.sun.codemodel.JExpr
Boolean constant that represents true
type() - Method in class com.sun.codemodel.JMethod
Returns the return type.
type() - Method in class com.sun.codemodel.JVar
Return the type of this variable.
type(JType) - Method in class com.sun.codemodel.JMethod
Overrides the return type.
type(JType) - Method in class com.sun.codemodel.JVar
Sets the type of this variable.
typeParams() - Method in class com.sun.codemodel.JClass
Iterates all the type parameters of this class/interface.
typeParams() - Method in class com.sun.codemodel.JDefinedClass
 
typeParams() - Method in interface com.sun.codemodel.JGenerifiable
Iterates all the type parameters of this class/interface.

U

unboxify() - Method in class com.sun.codemodel.JClass
 
unboxify() - Method in class com.sun.codemodel.JPrimitiveType
Deprecated.
calling this method from JPrimitiveType would be meaningless, since it's always guaranteed to return this.
unboxify() - Method in class com.sun.codemodel.JType
If this class is a wrapper type for a primitive, return the primitive type.
UnicodeEscapeWriter - Class in com.sun.codemodel.util
Writer that escapes non US-ASCII characters into Java Unicode escape \\uXXXX.
UnicodeEscapeWriter(Writer) - Constructor for class com.sun.codemodel.util.UnicodeEscapeWriter
 
unwrap(JExpression) - Method in class com.sun.codemodel.JPrimitiveType
Do the opposite of the wrap method.
update(JExpression) - Method in class com.sun.codemodel.JForLoop
 

V

valueOf(String) - Static method in enum com.sun.codemodel.JModuleDirective.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.sun.codemodel.JModuleDirective.Type
Returns an array containing the constants of this enum type, in the order they are declared.
var() - Method in class com.sun.codemodel.JForEach
Returns a reference to the loop variable.
varParam(JType, String) - Method in class com.sun.codemodel.JMethod
Add the specified variable argument to the list of parameters for this method signature.
varParam(Class<?>, String) - Method in class com.sun.codemodel.JMethod
 
VOID - Variable in class com.sun.codemodel.JCodeModel
 
VOLATILE - Static variable in class com.sun.codemodel.JMod
 

W

wildcard() - Method in class com.sun.codemodel.JClass
Create "? extends T" from T.
wildcard() - Method in class com.sun.codemodel.JCodeModel
Gets a JClass representation for "?", which is equivalent to "? extends Object".
wrap(JExpression) - Method in class com.sun.codemodel.JPrimitiveType
Wraps an expression of this type to the corresponding wrapper class.
write(char[]) - Method in class com.sun.codemodel.util.JavadocEscapeWriter
 
write(char[]) - Method in class com.sun.codemodel.util.UnicodeEscapeWriter
 
write(char[], int, int) - Method in class com.sun.codemodel.util.JavadocEscapeWriter
 
write(char[], int, int) - Method in class com.sun.codemodel.util.UnicodeEscapeWriter
 
write(int) - Method in class com.sun.codemodel.util.JavadocEscapeWriter
 
write(int) - Method in class com.sun.codemodel.util.UnicodeEscapeWriter
 
write(String) - Method in class com.sun.codemodel.util.JavadocEscapeWriter
 
write(String) - Method in class com.sun.codemodel.util.UnicodeEscapeWriter
 
write(String, int, int) - Method in class com.sun.codemodel.util.JavadocEscapeWriter
 
write(String, int, int) - Method in class com.sun.codemodel.util.UnicodeEscapeWriter
 

X

xor(JExpression) - Method in interface com.sun.codemodel.JExpression
 
xor(JExpression) - Method in class com.sun.codemodel.JExpressionImpl
 
xor(JExpression, JExpression) - Static method in class com.sun.codemodel.JOp
 

Z

ZipCodeWriter - Class in com.sun.codemodel.writer
Writes all the files into a zip file.
ZipCodeWriter(OutputStream) - Constructor for class com.sun.codemodel.writer.ZipCodeWriter
 

_

_annotationTypeDeclaration(String) - Method in interface com.sun.codemodel.JClassContainer
Add an annotationType Declaration to this package
_annotationTypeDeclaration(String) - Method in class com.sun.codemodel.JDefinedClass
Add an annotationType Declaration to this package
_annotationTypeDeclaration(String) - Method in class com.sun.codemodel.JPackage
Add an annotationType Declaration to this package
_break() - Method in class com.sun.codemodel.JBlock
Create a break statement and add it to this block
_break(JLabel) - Method in class com.sun.codemodel.JBlock
 
_case(JExpression) - Method in class com.sun.codemodel.JSwitch
 
_catch(JClass) - Method in class com.sun.codemodel.JTryBlock
 
_class(int, String) - Method in interface com.sun.codemodel.JClassContainer
Add a new class to this package/class.
_class(int, String) - Method in class com.sun.codemodel.JDefinedClass
Add a new nested class to this class.
_class(int, String) - Method in class com.sun.codemodel.JPackage
Add a class to this package.
_class(int, String, boolean) - Method in interface com.sun.codemodel.JClassContainer
_class(int, String, boolean) - Method in class com.sun.codemodel.JDefinedClass
Deprecated. 
_class(int, String, boolean) - Method in class com.sun.codemodel.JPackage
Deprecated. 
_class(int, String, ClassType) - Method in interface com.sun.codemodel.JClassContainer
Creates a new class/enum/interface/annotation.
_class(int, String, ClassType) - Method in class com.sun.codemodel.JCodeModel
Creates a new generated class.
_class(int, String, ClassType) - Method in class com.sun.codemodel.JDefinedClass
 
_class(int, String, ClassType) - Method in class com.sun.codemodel.JPackage
 
_class(String) - Method in interface com.sun.codemodel.JClassContainer
Add a new public class to this class/package.
_class(String) - Method in class com.sun.codemodel.JCodeModel
Creates a new generated class.
_class(String) - Method in class com.sun.codemodel.JDefinedClass
Add a new public nested class to this class.
_class(String) - Method in class com.sun.codemodel.JPackage
Adds a public class to this package.
_class(String, ClassType) - Method in class com.sun.codemodel.JCodeModel
Creates a new generated class.
_continue() - Method in class com.sun.codemodel.JBlock
 
_continue(JLabel) - Method in class com.sun.codemodel.JBlock
Create a continue statement and add it to this block
_default() - Method in class com.sun.codemodel.JSwitch
 
_do(JExpression) - Method in class com.sun.codemodel.JBlock
Create a Do statement and add it to this block
_else() - Method in class com.sun.codemodel.JConditional
Create a block to be executed by "else" branch
_elseif(JExpression) - Method in class com.sun.codemodel.JConditional
Creates ... else if(...) ... code.
_enum(int, String) - Method in class com.sun.codemodel.JDefinedClass
Add a public enum to this package
_enum(String) - Method in interface com.sun.codemodel.JClassContainer
Add a public enum to this package
_enum(String) - Method in class com.sun.codemodel.JDefinedClass
Add a public enum to this package
_enum(String) - Method in class com.sun.codemodel.JPackage
Add a public enum to this package
_exports(JPackage) - Method in class com.sun.codemodel.JModule
Adds a package to the list of Java module exports.
_exports(Collection<JPackage>, boolean) - Method in class com.sun.codemodel.JModule
Adds packages to the list of Java module exports.
_extends() - Method in class com.sun.codemodel.JClass
Gets the super class of this class.
_extends() - Method in class com.sun.codemodel.JDefinedClass
Returns the class extended by this class.
_extends() - Method in class com.sun.codemodel.JNullType
 
_extends() - Method in class com.sun.codemodel.JTypeVar
Returns the class bound of this variable.
_extends(JClass) - Method in class com.sun.codemodel.JDefinedClass
This class extends the specifed class.
_extends(Class<?>) - Method in class com.sun.codemodel.JDefinedClass
 
_finally() - Method in class com.sun.codemodel.JTryBlock
 
_for() - Method in class com.sun.codemodel.JBlock
Create a For statement and add it to this block
_getClass(String) - Method in class com.sun.codemodel.JCodeModel
Gets a reference to the already created generated class.
_getClass(String) - Method in class com.sun.codemodel.JPackage
Gets a reference to the already created JDefinedClass.
_getModuleInfo() - Method in class com.sun.codemodel.JCodeModel
Returns existing Java module to be generated.
_if(JExpression) - Method in class com.sun.codemodel.JBlock
Create an If statement and add it to this block
_implements() - Method in class com.sun.codemodel.JClass
Iterates all super interfaces directly implemented by this class/interface.
_implements() - Method in class com.sun.codemodel.JDefinedClass
Returns an iterator that walks the nested classes defined in this class.
_implements() - Method in class com.sun.codemodel.JNullType
 
_implements() - Method in class com.sun.codemodel.JTypeVar
Returns the interface bounds of this variable.
_implements(JClass) - Method in class com.sun.codemodel.JDefinedClass
This class implements the specifed interface.
_implements(Class<?>) - Method in class com.sun.codemodel.JDefinedClass
 
_instanceof(JExpression, JType) - Static method in class com.sun.codemodel.JOp
 
_instanceof(JType) - Method in interface com.sun.codemodel.JExpression
Returns "[this] instanceof [right]"
_instanceof(JType) - Method in class com.sun.codemodel.JExpressionImpl
 
_interface(int, String) - Method in interface com.sun.codemodel.JClassContainer
Add an interface to this class/package.
_interface(int, String) - Method in class com.sun.codemodel.JDefinedClass
Add an interface to this package.
_interface(int, String) - Method in class com.sun.codemodel.JPackage
Add an interface to this package.
_interface(String) - Method in interface com.sun.codemodel.JClassContainer
Adds a public interface to this package.
_interface(String) - Method in class com.sun.codemodel.JDefinedClass
Adds a public interface to this package.
_interface(String) - Method in class com.sun.codemodel.JPackage
Adds a public interface to this package.
_moduleInfo(String) - Method in class com.sun.codemodel.JCodeModel
Creates and returns Java module to be generated.
_new(JClass) - Static method in class com.sun.codemodel.JExpr
 
_new(JType) - Static method in class com.sun.codemodel.JExpr
 
_null() - Static method in class com.sun.codemodel.JExpr
 
_package() - Method in class com.sun.codemodel.JClass
Gets the package to which this class belongs.
_package() - Method in class com.sun.codemodel.JDefinedClass
 
_package() - Method in class com.sun.codemodel.JNullType
 
_package() - Method in class com.sun.codemodel.JTypeVar
 
_package(String) - Method in class com.sun.codemodel.JCodeModel
Add a package to the list of packages to be generated.
_prepareModuleInfo(String, String...) - Method in class com.sun.codemodel.JCodeModel
Creates Java module instance and adds existing packages with classes to the Java module info.
_ref(Class<?>) - Method in class com.sun.codemodel.JCodeModel
 
_requires(boolean, boolean, String...) - Method in class com.sun.codemodel.JModule
Adds all modules to the list of Java module requirements.
_requires(String) - Method in class com.sun.codemodel.JModule
Adds a module to the list of Java module requirements without public and static modifiers.
_requires(String...) - Method in class com.sun.codemodel.JModule
Adds all modules to the list of Java module requirements without public and static modifiers.
_requires(String, boolean, boolean) - Method in class com.sun.codemodel.JModule
Adds a module to the list of Java module requirements.
_return() - Method in class com.sun.codemodel.JBlock
Create a return statement and add it to this block
_return(JExpression) - Method in class com.sun.codemodel.JBlock
Create a return statement and add it to this block
_super() - Static method in class com.sun.codemodel.JExpr
Returns a reference to "super", an implicit reference to the super class.
_switch(JExpression) - Method in class com.sun.codemodel.JBlock
Create a switch/case statement and add it to this block
_then() - Method in class com.sun.codemodel.JConditional
Return the block to be excuted by the "then" branch
_this() - Static method in class com.sun.codemodel.JExpr
Returns a reference to "this", an implicit reference to the current object.
_throw(JExpression) - Method in class com.sun.codemodel.JBlock
Create a throw statement and add it to this block
_throws(JClass) - Method in class com.sun.codemodel.JMethod
Add an exception to the list of exceptions that this method may throw.
_throws(Class<? extends Throwable>) - Method in class com.sun.codemodel.JMethod
 
_try() - Method in class com.sun.codemodel.JBlock
Create a Try statement and add it to this block
_updateModuleInfo(String...) - Method in class com.sun.codemodel.JCodeModel
Adds existing packages with classes to the Java module info.
_while(JExpression) - Method in class com.sun.codemodel.JBlock
Create a While statement and add it to this block
A B C D E F G H I J L M N O P Q R S T U V W X Z _ 
Skip navigation links

Copyright © 2018 Oracle Corporation. All rights reserved.