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

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

public class ParameterAnnotation
extends ClassFileStruct
implements IParameterAnnotation

Default implementation of IParameterAnnotation


Constructor Summary
ParameterAnnotation(byte[] classFileBytes, IConstantPool constantPool, int offset)
          Constructor for Annotation.
 
Method Summary
 IAnnotation[] getAnnotations()
          Answer back the annotations as described in the JVM specifications.
 int getAnnotationsNumber()
          Answer back the number of annotations 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

ParameterAnnotation

public ParameterAnnotation(byte[] classFileBytes,
                           IConstantPool constantPool,
                           int offset)
                    throws ClassFormatException
Constructor for Annotation.

Parameters:
classFileBytes -
constantPool -
offset -
Throws:
ClassFormatException
Method Detail

getAnnotations

public IAnnotation[] getAnnotations()
Description copied from interface: IParameterAnnotation
Answer back the annotations as described in the JVM specifications. Answers an empty collection if none.

Specified by:
getAnnotations in interface IParameterAnnotation
Returns:
the annotations

getAnnotationsNumber

public int getAnnotationsNumber()
Description copied from interface: IParameterAnnotation
Answer back the number of annotations as described in the JVM specifications.

Specified by:
getAnnotationsNumber in interface IParameterAnnotation
Returns:
the number of annotations