Class AnnotationComponentValue

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

public class AnnotationComponentValue extends ClassFileStruct implements IAnnotationComponentValue
Default implementation of IAnnotationComponent
  • Field Summary

    Fields inherited from interface IAnnotationComponentValue

    ANNOTATION_TAG, ARRAY_TAG, BOOLEAN_TAG, BYTE_TAG, CHAR_TAG, CLASS_TAG, DOUBLE_TAG, ENUM_TAG, FLOAT_TAG, INTEGER_TAG, LONG_TAG, SHORT_TAG, STRING_TAG
    Modifier and Type
    Field
    Description
    static final int
    Tag value for a value that represents an annotation
    static final int
    Tag value for a value that represents an array
    static final int
    Tag value for a constant of type boolean
    static final int
    Tag value for a constant of type byte
    static final int
    Tag value for a constant of type char
    static final int
    Tag value for a value that represents a class
    static final int
    Tag value for a constant of type double
    static final int
    Tag value for a value that represents an enum constant
    static final int
    Tag value for a constant of type float
    static final int
    Tag value for a constant of type int
    static final int
    Tag value for a constant of type long
    static final int
    Tag value for a constant of type short
    static final int
    Tag value for a constant of type java.lang.String
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Returns the annotation component values as described in the JVM specifications if the tag item is '['.
    Returns the annotation value as described in the JVM specifications if the tag item is '@'.
    Returns the class info as described in the JVM specifications if the tag item is 'c'.
    int
    Returns the class info index as described in the JVM specifications if the tag item is 'c'.
    Returns the constant value as described in the JVM specifications if the tag item is one of 'B', 'C', 'D', 'F', 'I', 'J', 'S', 'Z', or 's'.
    int
    Returns the constant value index as described in the JVM specifications if the tag item is one of 'B', 'C', 'D', 'F', 'I', 'J', 'S', 'Z', or 's'.
    char[]
    Returns the simple name of the enum constant represented by this annotation component value as described in the JVM specifications if the tag item is 'e'.
    int
    Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'.
    char[]
    Returns the binary name of the type of the enum constant represented by this annotation component value as described in the JVM specifications if the tag item is 'e'.
    int
    Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'.
    int
    Returns the tag as described in the JVM specifications.
    int
    Returns the number of values as described in the JVM specifications if the tag item is '['.

    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