Class Annotation

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

public class Annotation extends ClassFileStruct implements IAnnotation
Default implementation of IAnnotation
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Answer back the components as described in the JVM specifications.
    int
    Answer back the number of components as described in the JVM specifications.
    int
    Answer back the type index as described in the JVM specifications.
    char[]
    Answer back the type name as described in the JVM specifications.

    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

    • getTypeIndex

      public int getTypeIndex()
      Description copied from interface: IAnnotation
      Answer back the type index as described in the JVM specifications.
      Specified by:
      getTypeIndex in interface IAnnotation
      Returns:
      the type index
    • getComponentsNumber

      public int getComponentsNumber()
      Description copied from interface: IAnnotation
      Answer back the number of components as described in the JVM specifications.
      Specified by:
      getComponentsNumber in interface IAnnotation
      Returns:
      the type index
    • getComponents

      public IAnnotationComponent[] getComponents()
      Description copied from interface: IAnnotation
      Answer back the components as described in the JVM specifications. Answer an empty collection if none.
      Specified by:
      getComponents in interface IAnnotation
      Returns:
      the components
    • getTypeName

      public char[] getTypeName()
      Description copied from interface: IAnnotation
      Answer back the type name as described in the JVM specifications.
      Specified by:
      getTypeName in interface IAnnotation
      Returns:
      the type name