| Package | Description |
|---|---|
| com.sun.codemodel |
Library for generating Java source code
|
| com.sun.codemodel.fmt |
Various resource file formats (classes that implement
JResourceFile). |
| com.sun.codemodel.writer |
| Modifier and Type | Method | Description |
|---|---|---|
abstract JPackage |
JClass._package() |
Gets the package to which this class belongs.
|
JPackage |
JCodeModel._package(java.lang.String name) |
Add a package to the list of packages to be generated.
|
JPackage |
JDefinedClass._package() |
|
JPackage |
JNullType._package() |
|
JPackage |
JTypeVar._package() |
|
JPackage |
JClassContainer.getPackage() |
Gets the nearest package parent.
|
JPackage |
JDefinedClass.getPackage() |
|
JPackage |
JPackage.getPackage() |
|
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 | Description |
|---|---|---|
java.util.Iterator<JPackage> |
JCodeModel.packages() |
Returns an iterator that walks the packages defined using this code
writer.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
JModule._exports(JPackage pkg) |
Adds a package to the list of Java module exports.
|
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 | Method | Description |
|---|---|---|
void |
JModule._exports(java.util.Collection<JPackage> pkgs,
boolean addEmpty) |
Adds packages to the list of Java module exports.
|
| Constructor | Description |
|---|---|
JStaticJavaFile(JPackage _pkg,
java.lang.String _className,
java.lang.Class<?> loadingClass,
JStaticJavaFile.LineFilter _filter) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.io.File |
FileCodeWriter.getFile(JPackage pkg,
java.lang.String fileName) |
|
java.io.OutputStream |
FileCodeWriter.openBinary(JPackage pkg,
java.lang.String fileName) |
|
java.io.OutputStream |
FilterCodeWriter.openBinary(JPackage pkg,
java.lang.String fileName) |
|
java.io.OutputStream |
OutputStreamCodeWriter.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.OutputStream |
ZipCodeWriter.openBinary(JPackage pkg,
java.lang.String fileName) |
|
java.io.Writer |
FilterCodeWriter.openSource(JPackage pkg,
java.lang.String fileName) |
|
java.io.Writer |
ProgressCodeWriter.openSource(JPackage pkg,
java.lang.String fileName) |
|
java.io.Writer |
PrologCodeWriter.openSource(JPackage pkg,
java.lang.String fileName) |
Copyright © 2017 Oracle Corporation. All rights reserved.