Schnittstelle IAnnotationComponentValue

Alle bekannten Implementierungsklassen:
AnnotationComponentValue

public interface IAnnotationComponentValue
Description of an annotation component value as described in the JVM specifications (added in J2SE 1.5). This interface may be implemented by clients.
Seit:
3.1
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    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
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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 '['.
  • Felddetails

    • BYTE_TAG

      static final int BYTE_TAG
      Tag value for a constant of type byte
      Seit:
      3.1
      Siehe auch:
    • CHAR_TAG

      static final int CHAR_TAG
      Tag value for a constant of type char
      Seit:
      3.1
      Siehe auch:
    • DOUBLE_TAG

      static final int DOUBLE_TAG
      Tag value for a constant of type double
      Seit:
      3.1
      Siehe auch:
    • FLOAT_TAG

      static final int FLOAT_TAG
      Tag value for a constant of type float
      Seit:
      3.1
      Siehe auch:
    • INTEGER_TAG

      static final int INTEGER_TAG
      Tag value for a constant of type int
      Seit:
      3.1
      Siehe auch:
    • LONG_TAG

      static final int LONG_TAG
      Tag value for a constant of type long
      Seit:
      3.1
      Siehe auch:
    • SHORT_TAG

      static final int SHORT_TAG
      Tag value for a constant of type short
      Seit:
      3.1
      Siehe auch:
    • BOOLEAN_TAG

      static final int BOOLEAN_TAG
      Tag value for a constant of type boolean
      Seit:
      3.1
      Siehe auch:
    • STRING_TAG

      static final int STRING_TAG
      Tag value for a constant of type java.lang.String
      Seit:
      3.1
      Siehe auch:
    • ENUM_TAG

      static final int ENUM_TAG
      Tag value for a value that represents an enum constant
      Seit:
      3.1
      Siehe auch:
    • CLASS_TAG

      static final int CLASS_TAG
      Tag value for a value that represents a class
      Seit:
      3.1
      Siehe auch:
    • ANNOTATION_TAG

      static final int ANNOTATION_TAG
      Tag value for a value that represents an annotation
      Seit:
      3.1
      Siehe auch:
    • ARRAY_TAG

      static final int ARRAY_TAG
      Tag value for a value that represents an array
      Seit:
      3.1
      Siehe auch:
  • Methodendetails

    • getAnnotationComponentValues

      IAnnotationComponentValue[] getAnnotationComponentValues()
      Returns the annotation component values as described in the JVM specifications if the tag item is '['. Returns null otherwise.
      Gibt zurück:
      the annotation component values
    • getAnnotationValue

      IAnnotation getAnnotationValue()
      Returns the annotation value as described in the JVM specifications if the tag item is '@'. Returns null otherwise.
      Gibt zurück:
      the attribute value
      Seit:
      3.1
    • getClassInfo

      IConstantPoolEntry getClassInfo()
      Returns the class info as described in the JVM specifications if the tag item is 'c'. Returns null otherwise.
      Gibt zurück:
      the class info
    • getClassInfoIndex

      int getClassInfoIndex()
      Returns the class info index as described in the JVM specifications if the tag item is 'c'. Returns null otherwise.
      Gibt zurück:
      the class info index
    • getConstantValue

      IConstantPoolEntry getConstantValue()
      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'. Returns null otherwise.
      Gibt zurück:
      the constant value
    • getConstantValueIndex

      int getConstantValueIndex()
      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'. The value is unspecified otherwise.
      Gibt zurück:
      the constant value index
    • getEnumConstantName

      char[] getEnumConstantName()
      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'. Returns null otherwise.
      Gibt zurück:
      the enum constant
      Seit:
      3.1
    • getEnumConstantNameIndex

      int getEnumConstantNameIndex()
      Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'. The value is unspecified otherwise.
      Gibt zurück:
      the enum constant index
      Seit:
      3.1
    • getEnumConstantTypeName

      char[] getEnumConstantTypeName()
      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'. Returns null otherwise.
      Gibt zurück:
      the enum constant
      Seit:
      3.1
    • getEnumConstantTypeNameIndex

      int getEnumConstantTypeNameIndex()
      Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'. The value is unspecified otherwise.
      Gibt zurück:
      the enum constant index
      Seit:
      3.1
    • getTag

      int getTag()
      Returns the tag as described in the JVM specifications.
      Gibt zurück:
      the tag
    • getValuesNumber

      int getValuesNumber()
      Returns the number of values as described in the JVM specifications if the tag item is '['. The value is unspecified otherwise.
      Gibt zurück:
      the number of values