- 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
-
- 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(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
-
- 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
-
- 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
-
- 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
JClass
es 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
-
- createEncoder(String) - Static method in class com.sun.codemodel.util.EncoderFactory
-
- 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
-
- 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
-
- getDataStore() - Method in class com.sun.codemodel.fmt.JBinaryFile
-
- getExistingClass() - Method in exception com.sun.codemodel.JClassAlreadyExistsException
-
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- JExpression - Interface in com.sun.codemodel
-
A Java expression.
- JExpressionImpl - Class in com.sun.codemodel
-
- JExpressionImpl() - Constructor for class com.sun.codemodel.JExpressionImpl
-
- JFieldRef - Class in com.sun.codemodel
-
Field Reference
- JFieldVar - Class in com.sun.codemodel
-
- 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
- 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
-
- 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.
- 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
-
- _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
-
- _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