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