Class TypeReference

java.lang.Object
io.ebean.enhance.asm.TypeReference

public class TypeReference extends Object
A reference to a type appearing in a class, field or method declaration, or on an instruction. Such a reference designates the part of the class where the referenced type is appearing (e.g. an 'extends', 'implements' or 'throws' clause, a 'new' instruction, a 'catch' clause, a type cast, a local variable declaration, etc).
Author:
Eric Bruneton
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The sort of type references that target the type declared in an explicit or implicit cast instruction.
    static final int
    The sort of type references that target the super class of a class or one of the interfaces it implements.
    static final int
    The sort of type references that target a type parameter of a generic class.
    static final int
    The sort of type references that target a bound of a type parameter of a generic class.
    static final int
    The sort of type references that target a type parameter of a generic constructor in a constructor call.
    static final int
    The sort of type references that target the receiver type of a constructor reference.
    static final int
    The sort of type references that target a type parameter of a generic constructor in a constructor reference.
    static final int
    The sort of type references that target the type of the exception of a 'catch' clause in a method.
    static final int
    The sort of type references that target the type of a field.
    static final int
    The sort of type references that target the type declared in an 'instanceof' instruction.
    static final int
    The sort of type references that target the type of a local variable in a method.
    static final int
    The sort of type references that target the type of a formal parameter of a method.
    static final int
    The sort of type references that target a type parameter of a generic method in a method call.
    static final int
    The sort of type references that target the receiver type of a method.
    static final int
    The sort of type references that target the receiver type of a method reference.
    static final int
    The sort of type references that target a type parameter of a generic method in a method reference.
    static final int
    The sort of type references that target the return type of a method.
    static final int
    The sort of type references that target a type parameter of a generic method.
    static final int
    The sort of type references that target a bound of a type parameter of a generic method.
    static final int
    The sort of type references that target the type of the object created by a 'new' instruction.
    static final int
    The sort of type references that target the type of a resource variable in a method.
    static final int
    The sort of type references that target the type of an exception declared in the throws clause of a method.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TypeReference(int typeRef)
    Constructs a new TypeReference.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the index of the exception, in a 'throws' clause of a method, whose type is referenced by this type reference.
    int
    Returns the index of the formal parameter whose type is referenced by this type reference.
    int
    Returns the sort of this type reference.
    int
    Returns the index of the "super type" of a class that is referenced by this type reference.
    int
    Returns the index of the try catch block (using the order in which they are visited with visitTryCatchBlock), whose 'catch' type is referenced by this type reference.
    int
    Returns the index of the type argument referenced by this type reference.
    int
    Returns the index of the type parameter bound, within the type parameter getTypeParameterIndex(), referenced by this type reference.
    int
    Returns the index of the type parameter referenced by this type reference.
    int
    Returns the int encoded value of this type reference, suitable for use in visit methods related to type annotations, like visitTypeAnnotation.
    newExceptionReference(int exceptionIndex)
    Returns a reference to the type of an exception, in a 'throws' clause of a method.
    Returns a reference to the type of a formal parameter of a method.
    newSuperTypeReference(int itfIndex)
    Returns a reference to the super class or to an interface of the 'implements' clause of a class.
    newTryCatchReference(int tryCatchBlockIndex)
    Returns a reference to the type of the exception declared in a 'catch' clause of a method.
    newTypeArgumentReference(int sort, int argIndex)
    Returns a reference to the type of a type argument in a constructor or method call or reference.
    newTypeParameterBoundReference(int sort, int paramIndex, int boundIndex)
    Returns a reference to a type parameter bound of a generic class or method.
    newTypeParameterReference(int sort, int paramIndex)
    Returns a reference to a type parameter of a generic class or method.
    newTypeReference(int sort)
    Returns a type reference of the given sort.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait