Mercurial > hg > truffle
comparison src/share/vm/classfile/javaClasses.hpp @ 7457:35431a769282
8004823: Add VM support for type annotation reflection
Reviewed-by: dholmes, coleenp
Contributed-by: joel.franck@oracle.com
author | stefank |
---|---|
date | Thu, 20 Dec 2012 10:22:19 +0100 |
parents | 90273fc0a981 |
children | 4daebd4cc1dd |
comparison
equal
deleted
inserted
replaced
7456:7d42f3b08300 | 7457:35431a769282 |
---|---|
552 static int modifiers_offset; | 552 static int modifiers_offset; |
553 static int signature_offset; | 553 static int signature_offset; |
554 static int annotations_offset; | 554 static int annotations_offset; |
555 static int parameter_annotations_offset; | 555 static int parameter_annotations_offset; |
556 static int annotation_default_offset; | 556 static int annotation_default_offset; |
557 static int type_annotations_offset; | |
557 | 558 |
558 static void compute_offsets(); | 559 static void compute_offsets(); |
559 | 560 |
560 public: | 561 public: |
561 // Allocation | 562 // Allocation |
596 static void set_parameter_annotations(oop method, oop value); | 597 static void set_parameter_annotations(oop method, oop value); |
597 | 598 |
598 static bool has_annotation_default_field(); | 599 static bool has_annotation_default_field(); |
599 static oop annotation_default(oop method); | 600 static oop annotation_default(oop method); |
600 static void set_annotation_default(oop method, oop value); | 601 static void set_annotation_default(oop method, oop value); |
602 | |
603 static bool has_type_annotations_field(); | |
604 static oop type_annotations(oop method); | |
605 static void set_type_annotations(oop method, oop value); | |
601 | 606 |
602 // Debugging | 607 // Debugging |
603 friend class JavaClasses; | 608 friend class JavaClasses; |
604 }; | 609 }; |
605 | 610 |
616 static int slot_offset; | 621 static int slot_offset; |
617 static int modifiers_offset; | 622 static int modifiers_offset; |
618 static int signature_offset; | 623 static int signature_offset; |
619 static int annotations_offset; | 624 static int annotations_offset; |
620 static int parameter_annotations_offset; | 625 static int parameter_annotations_offset; |
626 static int type_annotations_offset; | |
621 | 627 |
622 static void compute_offsets(); | 628 static void compute_offsets(); |
623 | 629 |
624 public: | 630 public: |
625 // Allocation | 631 // Allocation |
650 static void set_annotations(oop constructor, oop value); | 656 static void set_annotations(oop constructor, oop value); |
651 | 657 |
652 static bool has_parameter_annotations_field(); | 658 static bool has_parameter_annotations_field(); |
653 static oop parameter_annotations(oop method); | 659 static oop parameter_annotations(oop method); |
654 static void set_parameter_annotations(oop method, oop value); | 660 static void set_parameter_annotations(oop method, oop value); |
661 | |
662 static bool has_type_annotations_field(); | |
663 static oop type_annotations(oop constructor); | |
664 static void set_type_annotations(oop constructor, oop value); | |
655 | 665 |
656 // Debugging | 666 // Debugging |
657 friend class JavaClasses; | 667 friend class JavaClasses; |
658 }; | 668 }; |
659 | 669 |
669 static int type_offset; | 679 static int type_offset; |
670 static int slot_offset; | 680 static int slot_offset; |
671 static int modifiers_offset; | 681 static int modifiers_offset; |
672 static int signature_offset; | 682 static int signature_offset; |
673 static int annotations_offset; | 683 static int annotations_offset; |
684 static int type_annotations_offset; | |
674 | 685 |
675 static void compute_offsets(); | 686 static void compute_offsets(); |
676 | 687 |
677 public: | 688 public: |
678 // Allocation | 689 // Allocation |
707 static void set_parameter_annotations(oop method, oop value); | 718 static void set_parameter_annotations(oop method, oop value); |
708 | 719 |
709 static bool has_annotation_default_field(); | 720 static bool has_annotation_default_field(); |
710 static oop annotation_default(oop method); | 721 static oop annotation_default(oop method); |
711 static void set_annotation_default(oop method, oop value); | 722 static void set_annotation_default(oop method, oop value); |
723 | |
724 static bool has_type_annotations_field(); | |
725 static oop type_annotations(oop field); | |
726 static void set_type_annotations(oop field, oop value); | |
712 | 727 |
713 // Debugging | 728 // Debugging |
714 friend class JavaClasses; | 729 friend class JavaClasses; |
715 }; | 730 }; |
716 | 731 |