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
-
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_THISModifier and TypeFieldDescriptionstatic final intThe tag value representing double variable infostatic final intThe tag value representing float variable infostatic final intThe tag value representing integer variable infostatic final intThe tag value representing long variable infostatic final intThe tag value representing null variable infostatic final intThe tag value representing object variable infostatic final intThe tag value representing top variable infostatic final intThe tag value representing uninitialized variable infostatic final intThe tag value representing uninitialized this variable info -
Constructor Summary
ConstructorsConstructorDescriptionVerificationInfo(byte[] classFileBytes, IConstantPool constantPool, int offset) -
Method Summary
Modifier and TypeMethodDescriptionchar[]Answer back the name of the class type referenced by the index in the constant pool as described in the JVM specifications.intAnswer back the constant pool index of this verification type info as described in the JVM specifications.intAnswer back the offset of this verification type info as described in the JVM specifications.intgetTag()Answer back the tag of this verification type info as described in the JVM specifications.intMethods inherited from class ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptionprotected doubledoubleAt(byte[] reference, int relativeOffset, int structOffset) protected floatfloatAt(byte[] reference, int relativeOffset, int structOffset) protected inti1At(byte[] reference, int relativeOffset, int structOffset) protected inti2At(byte[] reference, int relativeOffset, int structOffset) protected inti4At(byte[] reference, int relativeOffset, int structOffset) protected longi8At(byte[] reference, int relativeOffset, int structOffset) protected intu1At(byte[] reference, int relativeOffset, int structOffset) protected intu2At(byte[] reference, int relativeOffset, int structOffset) protected intu4At(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)
-
Constructor Details
-
VerificationInfo
public VerificationInfo(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException - Throws:
ClassFormatException
-
-
Method Details
-
getTag
public int getTag()Description copied from interface:IVerificationTypeInfoAnswer 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:
getTagin interfaceIVerificationTypeInfo- Returns:
- the tag of this verification type info as described in the JVM specifications
-
getOffset
public int getOffset()Description copied from interface:IVerificationTypeInfoAnswer 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:
getOffsetin interfaceIVerificationTypeInfo- Returns:
- the offset of this verification type info as described in the JVM specifications
-
getConstantPoolIndex
public int getConstantPoolIndex()Description copied from interface:IVerificationTypeInfoAnswer 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:
getConstantPoolIndexin interfaceIVerificationTypeInfo- Returns:
- the constant pool index of this verification type info as described in the JVM specifications
-
getClassTypeName
public char[] getClassTypeName()Description copied from interface:IVerificationTypeInfoAnswer 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:
getClassTypeNamein interfaceIVerificationTypeInfo- 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()
-