54 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 55 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 56 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 57 * THE POSSIBILITY OF SUCH DAMAGE. 58 */ 59 60 package jdk.internal.org.objectweb.asm; 61 62 /** 63 * The path to a type argument, wildcard bound, array element type, or static 64 * inner type within an enclosing type. 65 * 66 * @author Eric Bruneton 67 */ 68 public class TypePath { 69 70 /** 71 * A type path step that steps into the element type of an array type. See 72 * {@link #getStep getStep}. 73 */ 74 public static final int ARRAY_ELEMENT = 0; 75 76 /** 77 * A type path step that steps into the nested type of a class type. See 78 * {@link #getStep getStep}. 79 */ 80 public static final int INNER_TYPE = 1; 81 82 /** 83 * A type path step that steps into the bound of a wildcard type. See 84 * {@link #getStep getStep}. 85 */ 86 public static final int WILDCARD_BOUND = 2; 87 88 /** 89 * A type path step that steps into a type argument of a generic type. See 90 * {@link #getStep getStep}. 91 */ 92 public static final int TYPE_ARGUMENT = 3; 93 94 /** 95 * The byte array where the path is stored, in Java class file format. 96 */ 97 byte[] b; 98 99 /** 100 * The offset of the first byte of the type path in 'b'. 101 */ 102 int offset; 103 104 /** 105 * Creates a new type path. 106 * 107 * @param b 108 * the byte array containing the type path in Java class file 109 * format. 110 * @param offset 111 * the offset of the first byte of the type path in 'b'. 112 */ | 54 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 55 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 56 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 57 * THE POSSIBILITY OF SUCH DAMAGE. 58 */ 59 60 package jdk.internal.org.objectweb.asm; 61 62 /** 63 * The path to a type argument, wildcard bound, array element type, or static 64 * inner type within an enclosing type. 65 * 66 * @author Eric Bruneton 67 */ 68 public class TypePath { 69 70 /** 71 * A type path step that steps into the element type of an array type. See 72 * {@link #getStep getStep}. 73 */ 74 public final static int ARRAY_ELEMENT = 0; 75 76 /** 77 * A type path step that steps into the nested type of a class type. See 78 * {@link #getStep getStep}. 79 */ 80 public final static int INNER_TYPE = 1; 81 82 /** 83 * A type path step that steps into the bound of a wildcard type. See 84 * {@link #getStep getStep}. 85 */ 86 public final static int WILDCARD_BOUND = 2; 87 88 /** 89 * A type path step that steps into a type argument of a generic type. See 90 * {@link #getStep getStep}. 91 */ 92 public final static int TYPE_ARGUMENT = 3; 93 94 /** 95 * The byte array where the path is stored, in Java class file format. 96 */ 97 byte[] b; 98 99 /** 100 * The offset of the first byte of the type path in 'b'. 101 */ 102 int offset; 103 104 /** 105 * Creates a new type path. 106 * 107 * @param b 108 * the byte array containing the type path in Java class file 109 * format. 110 * @param offset 111 * the offset of the first byte of the type path in 'b'. 112 */ |