org.aspectj.org.eclipse.jdt.internal.core.util
Class AnnotationComponent

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
      extended by org.aspectj.org.eclipse.jdt.internal.core.util.AnnotationComponent
All Implemented Interfaces:
IAnnotationComponent

public class AnnotationComponent
extends ClassFileStruct
implements IAnnotationComponent

Default implementation of IAnnotationComponent


Constructor Summary
AnnotationComponent(byte[] classFileBytes, IConstantPool constantPool, int offset)
           
 
Method Summary
 char[] getComponentName()
          Answer back the component name as described in the JVM specifications.
 int getComponentNameIndex()
          Answer back the component name index as described in the JVM specifications.
 IAnnotationComponentValue getComponentValue()
          Answer back the component value as described in the JVM specifications.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationComponent

public AnnotationComponent(byte[] classFileBytes,
                           IConstantPool constantPool,
                           int offset)
                    throws ClassFormatException
Throws:
ClassFormatException
Method Detail

getComponentNameIndex

public int getComponentNameIndex()
Description copied from interface: IAnnotationComponent
Answer back the component name index as described in the JVM specifications.

Specified by:
getComponentNameIndex in interface IAnnotationComponent
Returns:
the component name index

getComponentName

public char[] getComponentName()
Description copied from interface: IAnnotationComponent
Answer back the component name as described in the JVM specifications.

Specified by:
getComponentName in interface IAnnotationComponent
Returns:
the component name

getComponentValue

public IAnnotationComponentValue getComponentValue()
Description copied from interface: IAnnotationComponent
Answer back the component value as described in the JVM specifications.

Specified by:
getComponentValue in interface IAnnotationComponent
Returns:
the component value