< prev index next >

src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JClassContainer.java

Print this page




 112     public Iterator<JDefinedClass> classes();
 113 
 114     /**
 115      * Parent JClassContainer.
 116      *
 117      * If this is a package, this method returns a parent package,
 118      * or null if this package is the root package.
 119      *
 120      * If this is an outer-most class, this method returns a package
 121      * to which it belongs.
 122      *
 123      * If this is an inner class, this method returns the outer
 124      * class.
 125      */
 126     public JClassContainer parentContainer();
 127 
 128     /**
 129      * Gets the nearest package parent.
 130      *
 131      * <p>
 132      * If <tt>this.isPackage()</tt>, then return <tt>this</tt>.
 133      */
 134     public JPackage getPackage();
 135 
 136     /**
 137      * Get the root code model object.
 138      */
 139     public JCodeModel owner();
 140 
 141     /**
 142      * Add an annotationType Declaration to this package
 143      * @param name
 144      *      Name of the annotation Type declaration to be added to this package
 145      * @return
 146      *      newly created Annotation Type Declaration
 147      * @exception JClassAlreadyExistsException
 148      *      When the specified class/interface was already created.
 149 
 150      */
 151     public JDefinedClass _annotationTypeDeclaration(String name) throws JClassAlreadyExistsException;
 152 


 112     public Iterator<JDefinedClass> classes();
 113 
 114     /**
 115      * Parent JClassContainer.
 116      *
 117      * If this is a package, this method returns a parent package,
 118      * or null if this package is the root package.
 119      *
 120      * If this is an outer-most class, this method returns a package
 121      * to which it belongs.
 122      *
 123      * If this is an inner class, this method returns the outer
 124      * class.
 125      */
 126     public JClassContainer parentContainer();
 127 
 128     /**
 129      * Gets the nearest package parent.
 130      *
 131      * <p>
 132      * If {@code this.isPackage()}, then return {@code this}.
 133      */
 134     public JPackage getPackage();
 135 
 136     /**
 137      * Get the root code model object.
 138      */
 139     public JCodeModel owner();
 140 
 141     /**
 142      * Add an annotationType Declaration to this package
 143      * @param name
 144      *      Name of the annotation Type declaration to be added to this package
 145      * @return
 146      *      newly created Annotation Type Declaration
 147      * @exception JClassAlreadyExistsException
 148      *      When the specified class/interface was already created.
 149 
 150      */
 151     public JDefinedClass _annotationTypeDeclaration(String name) throws JClassAlreadyExistsException;
 152 
< prev index next >