com.sun.codemodel |
|
Java Source File Name | Type | Comment |
ClassType.java | Class | |
CodeWriter.java | Class | Receives generated code and writes to the appropriate storage. |
JAnnotatable.java | Interface | Annotatable program elements. |
JAnnotationArrayMember.java | Class | Represents an arrays as annotation members
This class implements
JAnnotatable to allow
new annotations to be added as a member of the array. |
JAnnotationStringValue.java | Class | Captures the value of the annotation. |
JAnnotationUse.java | Class | Represents an annotation on a program element. |
JAnnotationValue.java | Class | Things that can be values of an annotation element. |
JAnnotationWriter.java | Interface | Base interface for typed annotation writer. |
JAnonymousClass.java | Class | Anonymous class quick hack. |
JArray.java | Class | array creation and initialization. |
JArrayClass.java | Class | Array class. |
JArrayCompRef.java | Class | array component reference. |
JAssignment.java | Class | Assignment statements, which are also expressions. |
JAssignmentTarget.java | Interface | Marker interface for code components that can be placed to
the left of '=' in an assignment.
A left hand value can always be a right hand value, so
this interface derives from
JExpression . |
JAtom.java | Class | JAtoms: Simple code components that merely generate themselves. |
JBlock.java | Class | A block of Java code, which may contain statements and local declarations.
JBlock contains a large number of factory methods that creates new
statements/declarations. |
JBreak.java | Class | |
JCase.java | Class | |
JCast.java | Class | A cast operation. |
JCatchBlock.java | Class | |
JClass.java | Class | Represents a Java reference type, such as a class, an interface,
an enum, an array type, a parameterized type. |
JClassAlreadyExistsException.java | Class | Indicates that the class is already created. |
JClassContainer.java | Interface | The common aspect of a package and a class. |
JCodeModel.java | Class | Root of the code DOM.
Here's your typical CodeModel application.
JCodeModel cm = new JCodeModel();
// generate source code by populating the 'cm' tree.
cm._class(...);
...
// write them out
cm.build(new File("."));
Every CodeModel node is always owned by one
JCodeModel object
at any given time (which can be often accesesd by the owner() method.)
As such, when you generate Java code, most of the operation works
in a top-down fashion. |
JCommentPart.java | Class | A part is a part of a javadoc comment, and it is a list of values.
A part can contain a free-form text. |
JConditional.java | Class | |
JContinue.java | Class | |
JDeclaration.java | Interface | Common interface for code components that can generate declarations
of themselves. |
JDefinedClass.java | Class | A generated Java class/interface/enum/.... |
JDirectClass.java | Class | |
JDocComment.java | Class | JavaDoc comment.
A javadoc comment consists of multiple parts. |
JDoLoop.java | Class | |
JEnumConstant.java | Class | Enum Constant. |
JExpr.java | Class | Factory methods that generate various
JExpression s. |
JExpression.java | Interface | A Java expression. |
JExpressionImpl.java | Class | Provides default implementations for
JExpression . |
JFieldRef.java | Class | |
JFieldVar.java | Class | |
JForEach.java | Class | ForEach Statement
This will generate the code for statement based on the new
j2se 1.5 j.l.s. |
JForLoop.java | Class | |
JFormatter.java | Class | This is a utility class for managing indentation and other basic
formatting for PrintWriter. |
JGenerable.java | Interface | Common interface for code components that can generate
uses of themselves. |
JGenerifiable.java | Interface | Declarations that can have type variables. |
JGenerifiableImpl.java | Class | Implementation of
JGenerifiable . |
JInvocation.java | Class | |
JJavaName.java | Class | Utility methods that convert arbitrary strings into Java identifiers. |
JLabel.java | Class | Label that can be used for continue and break. |
JMethod.java | Class | Java method. |
JMod.java | Class | Modifier constants. |
JMods.java | Class | Modifier groups. |
JNarrowedClass.java | Class | Represents X<Y>. |
JNullType.java | Class | Special class object that represents the type of "null". |
JOp.java | Class | |
JPackage.java | Class | A Java package. |
JPrimitiveType.java | Class | Java built-in primitive types. |
JResourceFile.java | Class | Represents a resource file in the application-specific file format. |
JReturn.java | Class | |
JStatement.java | Interface | Common interface for code components that can generate
uses of themselves as statements. |
JStringLiteral.java | Class | String literal. |
JSwitch.java | Class | |
JThrow.java | Class | |
JTryBlock.java | Class | |
JType.java | Class | A representation of a type in codeModel. |
JTypeVar.java | Class | Type variable used to declare generics. |
JTypeWildcard.java | Class | Represents a wildcard type like "? extends Foo". |
JVar.java | Class | Variables and fields. |
JWhileLoop.java | Class | |
package-info.java | | |
TypedAnnotationWriter.java | Class | Dynamically implements the typed annotation writer interfaces. |