Lines 647-653
Link Here
|
647 |
IJavaSearchConstants.REFERENCES); |
647 |
IJavaSearchConstants.REFERENCES); |
648 |
|
648 |
|
649 |
assertPattern( |
649 |
assertPattern( |
650 |
"FieldReferencePattern: x.y.z.Foo.field --> int, exact match, case sensitive", |
650 |
"FieldReferencePattern: x.y.z.Foo.field --> int, exact match, case sensitive, erasure only", |
651 |
searchPattern); |
651 |
searchPattern); |
652 |
} |
652 |
} |
653 |
|
653 |
|
Lines 661-667
Link Here
|
661 |
IJavaSearchConstants.DECLARATIONS); |
661 |
IJavaSearchConstants.DECLARATIONS); |
662 |
|
662 |
|
663 |
assertPattern( |
663 |
assertPattern( |
664 |
"FieldDeclarationPattern: x.y.z.Foo.field --> int, exact match, case sensitive", |
664 |
"FieldDeclarationPattern: x.y.z.Foo.field --> int, exact match, case sensitive, erasure only", |
665 |
searchPattern); |
665 |
searchPattern); |
666 |
} |
666 |
} |
667 |
|
667 |
|
Lines 675-681
Link Here
|
675 |
IJavaSearchConstants.ALL_OCCURRENCES); |
675 |
IJavaSearchConstants.ALL_OCCURRENCES); |
676 |
|
676 |
|
677 |
assertPattern( |
677 |
assertPattern( |
678 |
"FieldCombinedPattern: x.y.z.Foo.field --> int, exact match, case sensitive", |
678 |
"FieldCombinedPattern: x.y.z.Foo.field --> int, exact match, case sensitive, erasure only", |
679 |
searchPattern); |
679 |
searchPattern); |
680 |
} |
680 |
} |
681 |
|
681 |
|
Lines 689-695
Link Here
|
689 |
IJavaSearchConstants.REFERENCES); |
689 |
IJavaSearchConstants.REFERENCES); |
690 |
|
690 |
|
691 |
assertPattern( |
691 |
assertPattern( |
692 |
"PackageReferencePattern: <x.y>, exact match, case sensitive", |
692 |
"PackageReferencePattern: <x.y>, exact match, case sensitive, erasure only", |
693 |
searchPattern); |
693 |
searchPattern); |
694 |
} |
694 |
} |
695 |
|
695 |
|
Lines 703-709
Link Here
|
703 |
IJavaSearchConstants.DECLARATIONS); |
703 |
IJavaSearchConstants.DECLARATIONS); |
704 |
|
704 |
|
705 |
assertPattern( |
705 |
assertPattern( |
706 |
"MethodDeclarationPattern: x.y.z.Foo.bar() --> void, exact match, case sensitive", |
706 |
"MethodDeclarationPattern: x.y.z.Foo.bar() --> void, exact match, case sensitive, erasure only", |
707 |
searchPattern); |
707 |
searchPattern); |
708 |
} |
708 |
} |
709 |
|
709 |
|
Lines 717-723
Link Here
|
717 |
IJavaSearchConstants.REFERENCES); |
717 |
IJavaSearchConstants.REFERENCES); |
718 |
|
718 |
|
719 |
assertPattern( |
719 |
assertPattern( |
720 |
"MethodReferencePattern: x.y.z.Foo.bar() --> void, exact match, case sensitive", |
720 |
"MethodReferencePattern: x.y.z.Foo.bar() --> void, exact match, case sensitive, erasure only", |
721 |
searchPattern); |
721 |
searchPattern); |
722 |
} |
722 |
} |
723 |
|
723 |
|
Lines 731-737
Link Here
|
731 |
IJavaSearchConstants.ALL_OCCURRENCES); |
731 |
IJavaSearchConstants.ALL_OCCURRENCES); |
732 |
|
732 |
|
733 |
assertPattern( |
733 |
assertPattern( |
734 |
"MethodCombinedPattern: x.y.z.Foo.bar() --> void, exact match, case sensitive", |
734 |
"MethodCombinedPattern: x.y.z.Foo.bar() --> void, exact match, case sensitive, erasure only", |
735 |
searchPattern); |
735 |
searchPattern); |
736 |
} |
736 |
} |
737 |
|
737 |
|
Lines 745-751
Link Here
|
745 |
IJavaSearchConstants.DECLARATIONS); |
745 |
IJavaSearchConstants.DECLARATIONS); |
746 |
|
746 |
|
747 |
assertPattern( |
747 |
assertPattern( |
748 |
"TypeDeclarationPattern: pkg<x.y.z>, enclosing<>, type<Foo>, exact match, case sensitive", |
748 |
"TypeDeclarationPattern: pkg<x.y.z>, enclosing<>, type<Foo>, exact match, case sensitive, erasure only", |
749 |
searchPattern); |
749 |
searchPattern); |
750 |
} |
750 |
} |
751 |
|
751 |
|
Lines 759-765
Link Here
|
759 |
IJavaSearchConstants.REFERENCES); |
759 |
IJavaSearchConstants.REFERENCES); |
760 |
|
760 |
|
761 |
assertPattern( |
761 |
assertPattern( |
762 |
"TypeReferencePattern: qualification<x.y.z>, type<Foo>, exact match, case sensitive", |
762 |
"TypeReferencePattern: qualification<x.y.z>, type<Foo>, exact match, case sensitive, erasure only", |
763 |
searchPattern); |
763 |
searchPattern); |
764 |
} |
764 |
} |
765 |
|
765 |
|
Lines 773-779
Link Here
|
773 |
IJavaSearchConstants.IMPLEMENTORS); |
773 |
IJavaSearchConstants.IMPLEMENTORS); |
774 |
|
774 |
|
775 |
assertPattern( |
775 |
assertPattern( |
776 |
"SuperInterfaceReferencePattern: <I>, exact match, case sensitive", |
776 |
"SuperInterfaceReferencePattern: <I>, exact match, case sensitive, erasure only", |
777 |
searchPattern); |
777 |
searchPattern); |
778 |
} |
778 |
} |
779 |
|
779 |
|
Lines 787-794
Link Here
|
787 |
IJavaSearchConstants.ALL_OCCURRENCES); |
787 |
IJavaSearchConstants.ALL_OCCURRENCES); |
788 |
|
788 |
|
789 |
assertPattern( |
789 |
assertPattern( |
790 |
"TypeDeclarationPattern: pkg<x.y.z>, enclosing<>, type<Foo>, exact match, case sensitive\n" + |
790 |
"TypeDeclarationPattern: pkg<x.y.z>, enclosing<>, type<Foo>, exact match, case sensitive, erasure only\n" + |
791 |
"| TypeReferencePattern: qualification<x.y.z>, type<Foo>, exact match, case sensitive", |
791 |
"| TypeReferencePattern: qualification<x.y.z>, type<Foo>, exact match, case sensitive, erasure only", |
792 |
searchPattern); |
792 |
searchPattern); |
793 |
} |
793 |
} |
794 |
|
794 |
|
Lines 802-808
Link Here
|
802 |
IJavaSearchConstants.REFERENCES); |
802 |
IJavaSearchConstants.REFERENCES); |
803 |
|
803 |
|
804 |
assertPattern( |
804 |
assertPattern( |
805 |
"PackageReferencePattern: <x.y.z>, exact match, case sensitive", |
805 |
"PackageReferencePattern: <x.y.z>, exact match, case sensitive, erasure only", |
806 |
searchPattern); |
806 |
searchPattern); |
807 |
} |
807 |
} |
808 |
|
808 |
|
Lines 816-822
Link Here
|
816 |
IJavaSearchConstants.REFERENCES); |
816 |
IJavaSearchConstants.REFERENCES); |
817 |
|
817 |
|
818 |
assertPattern( |
818 |
assertPattern( |
819 |
"PackageReferencePattern: <x.y.z>, exact match, case sensitive", |
819 |
"PackageReferencePattern: <x.y.z>, exact match, case sensitive, erasure only", |
820 |
searchPattern); |
820 |
searchPattern); |
821 |
} |
821 |
} |
822 |
|
822 |
|
Lines 830-836
Link Here
|
830 |
IJavaSearchConstants.REFERENCES); |
830 |
IJavaSearchConstants.REFERENCES); |
831 |
|
831 |
|
832 |
assertPattern( |
832 |
assertPattern( |
833 |
"TypeReferencePattern: qualification<java.util>, type<Vector>, exact match, case sensitive", |
833 |
"TypeReferencePattern: qualification<java.util>, type<Vector>, exact match, case sensitive, erasure only", |
834 |
searchPattern); |
834 |
searchPattern); |
835 |
} |
835 |
} |
836 |
|
836 |
|
Lines 844-850
Link Here
|
844 |
IJavaSearchConstants.DECLARATIONS); |
844 |
IJavaSearchConstants.DECLARATIONS); |
845 |
|
845 |
|
846 |
assertPattern( |
846 |
assertPattern( |
847 |
"PackageDeclarationPattern: <x.y.z>, exact match, case sensitive", |
847 |
"PackageDeclarationPattern: <x.y.z>, exact match, case sensitive, erasure only", |
848 |
searchPattern); |
848 |
searchPattern); |
849 |
} |
849 |
} |
850 |
|
850 |
|
Lines 858-864
Link Here
|
858 |
IJavaSearchConstants.DECLARATIONS); |
858 |
IJavaSearchConstants.DECLARATIONS); |
859 |
|
859 |
|
860 |
assertPattern( |
860 |
assertPattern( |
861 |
"PackageDeclarationPattern: <x.y.z>, exact match, case sensitive", |
861 |
"PackageDeclarationPattern: <x.y.z>, exact match, case sensitive, erasure only", |
862 |
searchPattern); |
862 |
searchPattern); |
863 |
} |
863 |
} |
864 |
|
864 |
|
Lines 872-878
Link Here
|
872 |
IJavaSearchConstants.DECLARATIONS); |
872 |
IJavaSearchConstants.DECLARATIONS); |
873 |
|
873 |
|
874 |
assertPattern( |
874 |
assertPattern( |
875 |
"PackageDeclarationPattern: <x.y>, exact match, case sensitive", |
875 |
"PackageDeclarationPattern: <x.y>, exact match, case sensitive, erasure only", |
876 |
searchPattern); |
876 |
searchPattern); |
877 |
} |
877 |
} |
878 |
|
878 |
|
Lines 886-893
Link Here
|
886 |
IJavaSearchConstants.ALL_OCCURRENCES); |
886 |
IJavaSearchConstants.ALL_OCCURRENCES); |
887 |
|
887 |
|
888 |
assertPattern( |
888 |
assertPattern( |
889 |
"PackageDeclarationPattern: <x.y.z>, exact match, case sensitive\n" + |
889 |
"PackageDeclarationPattern: <x.y.z>, exact match, case sensitive, erasure only\n" + |
890 |
"| PackageReferencePattern: <x.y.z>, exact match, case sensitive", |
890 |
"| PackageReferencePattern: <x.y.z>, exact match, case sensitive, erasure only", |
891 |
searchPattern); |
891 |
searchPattern); |
892 |
} |
892 |
} |
893 |
|
893 |
|
Lines 901-907
Link Here
|
901 |
IJavaSearchConstants.DECLARATIONS); |
901 |
IJavaSearchConstants.DECLARATIONS); |
902 |
|
902 |
|
903 |
assertPattern( |
903 |
assertPattern( |
904 |
"LocalVarDeclarationPattern: var [in foo() [in X [in X.java [in <default> [in <project root> [in P]]]]]], exact match, case sensitive", |
904 |
"LocalVarDeclarationPattern: var [in foo() [in X [in X.java [in <default> [in <project root> [in P]]]]]], exact match, case sensitive, erasure only", |
905 |
searchPattern); |
905 |
searchPattern); |
906 |
} |
906 |
} |
907 |
|
907 |
|
Lines 915-921
Link Here
|
915 |
IJavaSearchConstants.REFERENCES); |
915 |
IJavaSearchConstants.REFERENCES); |
916 |
|
916 |
|
917 |
assertPattern( |
917 |
assertPattern( |
918 |
"LocalVarReferencePattern: var [in foo() [in X [in X.java [in <default> [in <project root> [in P]]]]]], exact match, case sensitive", |
918 |
"LocalVarReferencePattern: var [in foo() [in X [in X.java [in <default> [in <project root> [in P]]]]]], exact match, case sensitive, erasure only", |
919 |
searchPattern); |
919 |
searchPattern); |
920 |
} |
920 |
} |
921 |
|
921 |
|
Lines 929-935
Link Here
|
929 |
IJavaSearchConstants.ALL_OCCURRENCES); |
929 |
IJavaSearchConstants.ALL_OCCURRENCES); |
930 |
|
930 |
|
931 |
assertPattern( |
931 |
assertPattern( |
932 |
"LocalVarCombinedPattern: var [in foo() [in X [in X.java [in <default> [in <project root> [in P]]]]]], exact match, case sensitive", |
932 |
"LocalVarCombinedPattern: var [in foo() [in X [in X.java [in <default> [in <project root> [in P]]]]]], exact match, case sensitive, erasure only", |
933 |
searchPattern); |
933 |
searchPattern); |
934 |
} |
934 |
} |
935 |
|
935 |
|
Lines 943-949
Link Here
|
943 |
IJavaSearchConstants.DECLARATIONS); |
943 |
IJavaSearchConstants.DECLARATIONS); |
944 |
|
944 |
|
945 |
assertPattern( |
945 |
assertPattern( |
946 |
"TypeDeclarationPattern: pkg<>, enclosing<X.*>, type<Y>, exact match, case sensitive", |
946 |
"TypeDeclarationPattern: pkg<>, enclosing<X.*>, type<Y>, exact match, case sensitive, erasure only", |
947 |
searchPattern); |
947 |
searchPattern); |
948 |
} |
948 |
} |
949 |
|
949 |
|
Lines 957-963
Link Here
|
957 |
IJavaSearchConstants.REFERENCES); |
957 |
IJavaSearchConstants.REFERENCES); |
958 |
|
958 |
|
959 |
assertPattern( |
959 |
assertPattern( |
960 |
"TypeReferencePattern: qualification<X.*>, type<Y>, exact match, case sensitive", |
960 |
"TypeReferencePattern: qualification<X.*>, type<Y>, exact match, case sensitive, erasure only", |
961 |
searchPattern); |
961 |
searchPattern); |
962 |
} |
962 |
} |
963 |
|
963 |
|
Lines 971-977
Link Here
|
971 |
IJavaSearchConstants.DECLARATIONS); |
971 |
IJavaSearchConstants.DECLARATIONS); |
972 |
|
972 |
|
973 |
assertPattern( |
973 |
assertPattern( |
974 |
"TypeDeclarationPattern: pkg<>, enclosing<X.*>, type<Y>, exact match, case sensitive", |
974 |
"TypeDeclarationPattern: pkg<>, enclosing<X.*>, type<Y>, exact match, case sensitive, erasure only", |
975 |
searchPattern); |
975 |
searchPattern); |
976 |
} |
976 |
} |
977 |
|
977 |
|
Lines 985-991
Link Here
|
985 |
IJavaSearchConstants.REFERENCES); |
985 |
IJavaSearchConstants.REFERENCES); |
986 |
|
986 |
|
987 |
assertPattern( |
987 |
assertPattern( |
988 |
"TypeReferencePattern: qualification<X.*>, type<Y>, exact match, case sensitive", |
988 |
"TypeReferencePattern: qualification<X.*>, type<Y>, exact match, case sensitive, erasure only", |
989 |
searchPattern); |
989 |
searchPattern); |
990 |
} |
990 |
} |
991 |
/** |
991 |
/** |