| Modifier and Type | Method and Description |
|---|---|
| public JDefinedClass | Returns: newly created Annotation Type DeclarationName of the annotation Type declaration to be added to this package name)Add an annotationType Declaration to this package |
| public JDefinedClass | |
| public JDefinedClass | |
| public JDefinedClass | _class(int mods, String name, boolean isInterface)
Deprecated
use
_class(int, String, ClassType)
Create a new class or a new interface. |
| public JDefinedClass | |
| public JDefinedClass | |
| public JDefinedClass | Returns: Newly generated interfaceModifiers for this interface declaration mods, String Name of interface to be added to this package name)Add an interface to this class/package. |
| public JDefinedClass | |
| public Iterator | |
| public JPackage | |
| public boolean | |
| public boolean | |
| public JCodeModel | |
| public JClassContainer |
| _annotationTypeDeclaration | back to summary |
|---|---|
| public JDefinedClass _annotationTypeDeclaration(String name) throws JClassAlreadyExistsException Add an annotationType Declaration to this package
| |
| _class | back to summary |
|---|---|
| public JDefinedClass _class(int mods, String name) throws JClassAlreadyExistsException Add a new class to this package/class.
| |
| _class | back to summary |
|---|---|
| public JDefinedClass _class(String name) throws JClassAlreadyExistsException Add a new public class to this class/package.
| |
| _class | back to summary |
|---|---|
| public JDefinedClass _class(int mods, String name, boolean isInterface) throws JClassAlreadyExistsException
Deprecated Create a new class or a new interface.
| |
| _class | back to summary |
|---|---|
| public JDefinedClass _class(int mods, String name, ClassType kind) throws JClassAlreadyExistsException Creates a new class/enum/interface/annotation. | |
| _enum | back to summary |
|---|---|
| public JDefinedClass _enum(String name) throws JClassAlreadyExistsException Add a public enum to this package
| |
| _interface | back to summary |
|---|---|
| public JDefinedClass _interface(int mods, String name) throws JClassAlreadyExistsException Add an interface to this class/package.
| |
| _interface | back to summary |
|---|---|
| public JDefinedClass _interface(String name) throws JClassAlreadyExistsException Adds a public interface to this package.
| |
| classes | back to summary |
|---|---|
| public Iterator Returns an iterator that walks the nested classes defined in this class. | |
| getPackage | back to summary |
|---|---|
| public JPackage getPackage() Gets the nearest package parent.
If | |
| isClass | back to summary |
|---|---|
| public boolean isClass() Returns true if the container is a class. | |
| isPackage | back to summary |
|---|---|
| public boolean isPackage() Returns true if the container is a package. | |
| owner | back to summary |
|---|---|
| public JCodeModel owner() Get the root code model object. | |
| parentContainer | back to summary |
|---|---|
| public JClassContainer parentContainer() Parent JClassContainer. If this is a package, this method returns a parent package, or null if this package is the root package. If this is an outer-most class, this method returns a package to which it belongs. If this is an inner class, this method returns the outer class. | |