< prev index next >

src/hotspot/share/oops/annotations.hpp

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_OOPS_ANNOTATIONS_HPP
  26 #define SHARE_VM_OOPS_ANNOTATIONS_HPP
  27 
  28 #include "oops/array.hpp"
  29 #include "oops/metadata.hpp"
  30 #include "runtime/handles.hpp"
  31 #include "utilities/exceptions.hpp"
  32 #include "utilities/globalDefinitions.hpp"
  33 
  34 
  35 class ClassLoaderData;
  36 class outputStream;
  37 class KlassSizeStats;
  38 
  39 typedef Array<u1> AnnotationArray;
  40 
  41 // Class to hold the various types of annotations. The only metadata that points
  42 // to this is InstanceKlass, or another Annotations instance if this is a
  43 // a type_annotation instance.
  44 
  45 class Annotations: public MetaspaceObj {
  46   // If you add a new field that points to any metaspace object, you
  47   // must add this field to Annotations::metaspace_pointers_do().
  48 
  49   // Annotations for this class, or null if none.
  50   AnnotationArray*             _class_annotations;




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_OOPS_ANNOTATIONS_HPP
  26 #define SHARE_VM_OOPS_ANNOTATIONS_HPP
  27 
  28 #include "oops/array.hpp"
  29 #include "oops/metadata.hpp"

  30 #include "utilities/exceptions.hpp"
  31 #include "utilities/globalDefinitions.hpp"
  32 
  33 
  34 class ClassLoaderData;
  35 class outputStream;
  36 class KlassSizeStats;
  37 
  38 typedef Array<u1> AnnotationArray;
  39 
  40 // Class to hold the various types of annotations. The only metadata that points
  41 // to this is InstanceKlass, or another Annotations instance if this is a
  42 // a type_annotation instance.
  43 
  44 class Annotations: public MetaspaceObj {
  45   // If you add a new field that points to any metaspace object, you
  46   // must add this field to Annotations::metaspace_pointers_do().
  47 
  48   // Annotations for this class, or null if none.
  49   AnnotationArray*             _class_annotations;


< prev index next >