Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
com.sun.codemodel.ac | |
com.sun.codemodel.fmt | |
com.sun.codemodel.writer |
Modifier and Type | Field and Description |
---|---|
private JPackage |
JFormatter.javaLang |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,JPackage> |
JCodeModel.packages
The packages that this JCodeWriter contains.
|
Modifier and Type | Method and Description |
---|---|
JPackage |
JNarrowedClass._package() |
JPackage |
JArrayClass._package() |
JPackage |
JDefinedClass._package() |
JPackage |
JDirectClass._package() |
JPackage |
JCodeModel.JReferencedClass._package() |
JPackage |
JNullType._package() |
JPackage |
JTypeVar._package() |
abstract JPackage |
JClass._package()
Gets the package to which this class belongs.
|
JPackage |
JTypeWildcard._package() |
JPackage |
JCodeModel._package(java.lang.String name)
Add a package to the list of packages to be generated
|
JPackage |
JPackage.getPackage() |
JPackage |
JDefinedClass.getPackage() |
JPackage |
JClassContainer.getPackage()
Gets the nearest package parent.
|
JPackage |
JPackage.parent()
Gets the parent package, or null if this class is the root package.
|
JPackage |
JCodeModel.rootPackage() |
JPackage |
JPackage.subPackage(java.lang.String pkg)
Gets a reference to a sub package of this package.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<JPackage> |
JCodeModel.packages()
Returns an iterator that walks the packages defined using this code
writer.
|
Modifier and Type | Method and Description |
---|---|
int |
JPackage.compareTo(JPackage that)
Order is based on the lexicological order of the package name.
|
abstract java.io.OutputStream |
CodeWriter.openBinary(JPackage pkg,
java.lang.String fileName)
Called by CodeModel to store the specified file.
|
java.io.Writer |
CodeWriter.openSource(JPackage pkg,
java.lang.String fileName)
Called by CodeModel to store the specified file.
|
Modifier and Type | Field and Description |
---|---|
private JPackage |
ACTask.pkg
The writers will be generated into this package.
|
Modifier and Type | Field and Description |
---|---|
private JPackage |
JStaticJavaFile.pkg |
Modifier and Type | Method and Description |
---|---|
JPackage |
JStaticJavaFile.JStaticClass._package() |
Constructor and Description |
---|
JStaticJavaFile(JPackage _pkg,
java.lang.String className,
java.lang.String _resourceName) |
JStaticJavaFile(JPackage _pkg,
java.lang.String _className,
java.net.URL _source,
JStaticJavaFile.LineFilter _filter) |
Modifier and Type | Method and Description |
---|---|
protected java.io.File |
FileCodeWriter.getFile(JPackage pkg,
java.lang.String fileName) |
java.io.OutputStream |
FilterCodeWriter.openBinary(JPackage pkg,
java.lang.String fileName) |
java.io.OutputStream |
ZipCodeWriter.openBinary(JPackage pkg,
java.lang.String fileName) |
java.io.OutputStream |
FileCodeWriter.openBinary(JPackage pkg,
java.lang.String fileName) |
java.io.OutputStream |
ProgressCodeWriter.openBinary(JPackage pkg,
java.lang.String fileName) |
java.io.OutputStream |
SingleStreamCodeWriter.openBinary(JPackage pkg,
java.lang.String fileName) |
java.io.Writer |
FilterCodeWriter.openSource(JPackage pkg,
java.lang.String fileName) |
java.io.Writer |
PrologCodeWriter.openSource(JPackage pkg,
java.lang.String fileName) |
java.io.Writer |
ProgressCodeWriter.openSource(JPackage pkg,
java.lang.String fileName) |
private void |
ProgressCodeWriter.report(JPackage pkg,
java.lang.String fileName) |
private static java.lang.String |
ZipCodeWriter.toDirName(JPackage pkg)
Converts a package name to the directory name.
|
private static java.lang.String |
FileCodeWriter.toDirName(JPackage pkg)
Converts a package name to the directory name.
|