Class VerificationInfo

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.VerificationInfo
All Implemented Interfaces:
IVerificationTypeInfo

public class VerificationInfo extends ClassFileStruct implements IVerificationTypeInfo
  • Field Summary

    Fields inherited from interface IVerificationTypeInfo

    ITEM_DOUBLE, ITEM_FLOAT, ITEM_INTEGER, ITEM_LONG, ITEM_NULL, ITEM_OBJECT, ITEM_TOP, ITEM_UNINITIALIZED, ITEM_UNINITIALIZED_THIS
    Modifier and Type
    Field
    Description
    static final int
    The tag value representing double variable info
    static final int
    The tag value representing float variable info
    static final int
    The tag value representing integer variable info
    static final int
    The tag value representing long variable info
    static final int
    The tag value representing null variable info
    static final int
    The tag value representing object variable info
    static final int
    The tag value representing top variable info
    static final int
    The tag value representing uninitialized variable info
    static final int
    The tag value representing uninitialized this variable info
  • Constructor Summary

    Constructors
    Constructor
    Description
    VerificationInfo(byte[] classFileBytes, IConstantPool constantPool, int offset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    char[]
    Answer back the name of the class type referenced by the index in the constant pool as described in the JVM specifications.
    int
    Answer back the constant pool index of this verification type info as described in the JVM specifications.
    int
    Answer back the offset of this verification type info as described in the JVM specifications.
    int
    Answer back the tag of this verification type info as described in the JVM specifications.
    int
     

    Methods inherited from class ClassFileStruct

    doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At
    Modifier and Type
    Method
    Description
    protected double
    doubleAt(byte[] reference, int relativeOffset, int structOffset)
     
    protected float
    floatAt(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i1At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i2At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i4At(byte[] reference, int relativeOffset, int structOffset)
     
    protected long
    i8At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u1At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u2At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u4At(byte[] reference, int relativeOffset, int structOffset)
    Returns an 32 bit integer created of 4 bytes.
    protected char[]
    utf8At(byte[] reference, int relativeOffset, int structOffset, int bytesAvailable)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getTag

      public int getTag()
      Description copied from interface: IVerificationTypeInfo
      Answer back the tag of this verification type info as described in the JVM specifications.
      • 0 for the top type
      • 1 for the int type
      • 2 for the float type
      • 3 for the double type
      • 4 for the long type
      • 5 for the null type
      • 6 for the uninitialized this type
      • 7 for the object type
      • 8 for the uninitialized offset type
      Specified by:
      getTag in interface IVerificationTypeInfo
      Returns:
      the tag of this verification type info as described in the JVM specifications
    • getOffset

      public int getOffset()
      Description copied from interface: IVerificationTypeInfo
      Answer back the offset of this verification type info as described in the JVM specifications. This makes sense only if the tag is 8.
      Specified by:
      getOffset in interface IVerificationTypeInfo
      Returns:
      the offset of this verification type info as described in the JVM specifications
    • getConstantPoolIndex

      public int getConstantPoolIndex()
      Description copied from interface: IVerificationTypeInfo
      Answer back the constant pool index of this verification type info as described in the JVM specifications. This makes sense only if the tag is 7.
      Specified by:
      getConstantPoolIndex in interface IVerificationTypeInfo
      Returns:
      the constant pool index of this verification type info as described in the JVM specifications
    • getClassTypeName

      public char[] getClassTypeName()
      Description copied from interface: IVerificationTypeInfo
      Answer back the name of the class type referenced by the index in the constant pool as described in the JVM specifications. This makes sense only if the tag is 7.
      Specified by:
      getClassTypeName in interface IVerificationTypeInfo
      Returns:
      the name of the class type referenced by the index in the constant pool as described in the JVM specifications
    • sizeInBytes

      public int sizeInBytes()