jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/TypeReference.java
changeset 32649 2ee9017c7597
parent 25859 3317bb8137f4
child 36635 f0147be2f50f
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    72 
    72 
    73     /**
    73     /**
    74      * The sort of type references that target a type parameter of a generic
    74      * The sort of type references that target a type parameter of a generic
    75      * class. See {@link #getSort getSort}.
    75      * class. See {@link #getSort getSort}.
    76      */
    76      */
    77     public final static int CLASS_TYPE_PARAMETER = 0x00;
    77     public static final int CLASS_TYPE_PARAMETER = 0x00;
    78 
    78 
    79     /**
    79     /**
    80      * The sort of type references that target a type parameter of a generic
    80      * The sort of type references that target a type parameter of a generic
    81      * method. See {@link #getSort getSort}.
    81      * method. See {@link #getSort getSort}.
    82      */
    82      */
    83     public final static int METHOD_TYPE_PARAMETER = 0x01;
    83     public static final int METHOD_TYPE_PARAMETER = 0x01;
    84 
    84 
    85     /**
    85     /**
    86      * The sort of type references that target the super class of a class or one
    86      * The sort of type references that target the super class of a class or one
    87      * of the interfaces it implements. See {@link #getSort getSort}.
    87      * of the interfaces it implements. See {@link #getSort getSort}.
    88      */
    88      */
    89     public final static int CLASS_EXTENDS = 0x10;
    89     public static final int CLASS_EXTENDS = 0x10;
    90 
    90 
    91     /**
    91     /**
    92      * The sort of type references that target a bound of a type parameter of a
    92      * The sort of type references that target a bound of a type parameter of a
    93      * generic class. See {@link #getSort getSort}.
    93      * generic class. See {@link #getSort getSort}.
    94      */
    94      */
    95     public final static int CLASS_TYPE_PARAMETER_BOUND = 0x11;
    95     public static final int CLASS_TYPE_PARAMETER_BOUND = 0x11;
    96 
    96 
    97     /**
    97     /**
    98      * The sort of type references that target a bound of a type parameter of a
    98      * The sort of type references that target a bound of a type parameter of a
    99      * generic method. See {@link #getSort getSort}.
    99      * generic method. See {@link #getSort getSort}.
   100      */
   100      */
   101     public final static int METHOD_TYPE_PARAMETER_BOUND = 0x12;
   101     public static final int METHOD_TYPE_PARAMETER_BOUND = 0x12;
   102 
   102 
   103     /**
   103     /**
   104      * The sort of type references that target the type of a field. See
   104      * The sort of type references that target the type of a field. See
   105      * {@link #getSort getSort}.
   105      * {@link #getSort getSort}.
   106      */
   106      */
   107     public final static int FIELD = 0x13;
   107     public static final int FIELD = 0x13;
   108 
   108 
   109     /**
   109     /**
   110      * The sort of type references that target the return type of a method. See
   110      * The sort of type references that target the return type of a method. See
   111      * {@link #getSort getSort}.
   111      * {@link #getSort getSort}.
   112      */
   112      */
   113     public final static int METHOD_RETURN = 0x14;
   113     public static final int METHOD_RETURN = 0x14;
   114 
   114 
   115     /**
   115     /**
   116      * The sort of type references that target the receiver type of a method.
   116      * The sort of type references that target the receiver type of a method.
   117      * See {@link #getSort getSort}.
   117      * See {@link #getSort getSort}.
   118      */
   118      */
   119     public final static int METHOD_RECEIVER = 0x15;
   119     public static final int METHOD_RECEIVER = 0x15;
   120 
   120 
   121     /**
   121     /**
   122      * The sort of type references that target the type of a formal parameter of
   122      * The sort of type references that target the type of a formal parameter of
   123      * a method. See {@link #getSort getSort}.
   123      * a method. See {@link #getSort getSort}.
   124      */
   124      */
   125     public final static int METHOD_FORMAL_PARAMETER = 0x16;
   125     public static final int METHOD_FORMAL_PARAMETER = 0x16;
   126 
   126 
   127     /**
   127     /**
   128      * The sort of type references that target the type of an exception declared
   128      * The sort of type references that target the type of an exception declared
   129      * in the throws clause of a method. See {@link #getSort getSort}.
   129      * in the throws clause of a method. See {@link #getSort getSort}.
   130      */
   130      */
   131     public final static int THROWS = 0x17;
   131     public static final int THROWS = 0x17;
   132 
   132 
   133     /**
   133     /**
   134      * The sort of type references that target the type of a local variable in a
   134      * The sort of type references that target the type of a local variable in a
   135      * method. See {@link #getSort getSort}.
   135      * method. See {@link #getSort getSort}.
   136      */
   136      */
   137     public final static int LOCAL_VARIABLE = 0x40;
   137     public static final int LOCAL_VARIABLE = 0x40;
   138 
   138 
   139     /**
   139     /**
   140      * The sort of type references that target the type of a resource variable
   140      * The sort of type references that target the type of a resource variable
   141      * in a method. See {@link #getSort getSort}.
   141      * in a method. See {@link #getSort getSort}.
   142      */
   142      */
   143     public final static int RESOURCE_VARIABLE = 0x41;
   143     public static final int RESOURCE_VARIABLE = 0x41;
   144 
   144 
   145     /**
   145     /**
   146      * The sort of type references that target the type of the exception of a
   146      * The sort of type references that target the type of the exception of a
   147      * 'catch' clause in a method. See {@link #getSort getSort}.
   147      * 'catch' clause in a method. See {@link #getSort getSort}.
   148      */
   148      */
   149     public final static int EXCEPTION_PARAMETER = 0x42;
   149     public static final int EXCEPTION_PARAMETER = 0x42;
   150 
   150 
   151     /**
   151     /**
   152      * The sort of type references that target the type declared in an
   152      * The sort of type references that target the type declared in an
   153      * 'instanceof' instruction. See {@link #getSort getSort}.
   153      * 'instanceof' instruction. See {@link #getSort getSort}.
   154      */
   154      */
   155     public final static int INSTANCEOF = 0x43;
   155     public static final int INSTANCEOF = 0x43;
   156 
   156 
   157     /**
   157     /**
   158      * The sort of type references that target the type of the object created by
   158      * The sort of type references that target the type of the object created by
   159      * a 'new' instruction. See {@link #getSort getSort}.
   159      * a 'new' instruction. See {@link #getSort getSort}.
   160      */
   160      */
   161     public final static int NEW = 0x44;
   161     public static final int NEW = 0x44;
   162 
   162 
   163     /**
   163     /**
   164      * The sort of type references that target the receiver type of a
   164      * The sort of type references that target the receiver type of a
   165      * constructor reference. See {@link #getSort getSort}.
   165      * constructor reference. See {@link #getSort getSort}.
   166      */
   166      */
   167     public final static int CONSTRUCTOR_REFERENCE = 0x45;
   167     public static final int CONSTRUCTOR_REFERENCE = 0x45;
   168 
   168 
   169     /**
   169     /**
   170      * The sort of type references that target the receiver type of a method
   170      * The sort of type references that target the receiver type of a method
   171      * reference. See {@link #getSort getSort}.
   171      * reference. See {@link #getSort getSort}.
   172      */
   172      */
   173     public final static int METHOD_REFERENCE = 0x46;
   173     public static final int METHOD_REFERENCE = 0x46;
   174 
   174 
   175     /**
   175     /**
   176      * The sort of type references that target the type declared in an explicit
   176      * The sort of type references that target the type declared in an explicit
   177      * or implicit cast instruction. See {@link #getSort getSort}.
   177      * or implicit cast instruction. See {@link #getSort getSort}.
   178      */
   178      */
   179     public final static int CAST = 0x47;
   179     public static final int CAST = 0x47;
   180 
   180 
   181     /**
   181     /**
   182      * The sort of type references that target a type parameter of a generic
   182      * The sort of type references that target a type parameter of a generic
   183      * constructor in a constructor call. See {@link #getSort getSort}.
   183      * constructor in a constructor call. See {@link #getSort getSort}.
   184      */
   184      */
   185     public final static int CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT = 0x48;
   185     public static final int CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT = 0x48;
   186 
   186 
   187     /**
   187     /**
   188      * The sort of type references that target a type parameter of a generic
   188      * The sort of type references that target a type parameter of a generic
   189      * method in a method call. See {@link #getSort getSort}.
   189      * method in a method call. See {@link #getSort getSort}.
   190      */
   190      */
   191     public final static int METHOD_INVOCATION_TYPE_ARGUMENT = 0x49;
   191     public static final int METHOD_INVOCATION_TYPE_ARGUMENT = 0x49;
   192 
   192 
   193     /**
   193     /**
   194      * The sort of type references that target a type parameter of a generic
   194      * The sort of type references that target a type parameter of a generic
   195      * constructor in a constructor reference. See {@link #getSort getSort}.
   195      * constructor in a constructor reference. See {@link #getSort getSort}.
   196      */
   196      */
   197     public final static int CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT = 0x4A;
   197     public static final int CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT = 0x4A;
   198 
   198 
   199     /**
   199     /**
   200      * The sort of type references that target a type parameter of a generic
   200      * The sort of type references that target a type parameter of a generic
   201      * method in a method reference. See {@link #getSort getSort}.
   201      * method in a method reference. See {@link #getSort getSort}.
   202      */
   202      */
   203     public final static int METHOD_REFERENCE_TYPE_ARGUMENT = 0x4B;
   203     public static final int METHOD_REFERENCE_TYPE_ARGUMENT = 0x4B;
   204 
   204 
   205     /**
   205     /**
   206      * The type reference value in Java class file format.
   206      * The type reference value in Java class file format.
   207      */
   207      */
   208     private int value;
   208     private int value;