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

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
      extended by org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute
All Implemented Interfaces:
IClassFileAttribute
Direct Known Subclasses:
AnnotationDefaultAttribute, CodeAttribute, ConstantValueAttribute, EnclosingMethodAttribute, ExceptionAttribute, InnerClassesAttribute, LineNumberAttribute, LocalVariableAttribute, LocalVariableTypeAttribute, RuntimeInvisibleAnnotationsAttribute, RuntimeInvisibleParameterAnnotationsAttribute, RuntimeVisibleAnnotationsAttribute, RuntimeVisibleParameterAnnotationsAttribute, SignatureAttribute, SourceFileAttribute, StackMapAttribute, StackMapTableAttribute

public class ClassFileAttribute
extends ClassFileStruct
implements IClassFileAttribute

Default implementation of IClassFileAttribute


Field Summary
static IClassFileAttribute[] NO_ATTRIBUTES
           
 
Constructor Summary
ClassFileAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset)
           
 
Method Summary
 long getAttributeLength()
          Answer back the attribute length as specified in the JVM specifications.
 char[] getAttributeName()
          Answer back the attribute name as specified in the JVM specifications.
 int getAttributeNameIndex()
          Answer back the attribute name index in the constant pool as specified 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
 

Field Detail

NO_ATTRIBUTES

public static final IClassFileAttribute[] NO_ATTRIBUTES
Constructor Detail

ClassFileAttribute

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

getAttributeNameIndex

public int getAttributeNameIndex()
Description copied from interface: IClassFileAttribute
Answer back the attribute name index in the constant pool as specified in the JVM specifications.

Specified by:
getAttributeNameIndex in interface IClassFileAttribute
Returns:
the attribute name index in the constant pool

getAttributeName

public char[] getAttributeName()
Description copied from interface: IClassFileAttribute
Answer back the attribute name as specified in the JVM specifications.

Specified by:
getAttributeName in interface IClassFileAttribute
Returns:
the attribute name
See Also:
IClassFileAttribute.getAttributeName()

getAttributeLength

public long getAttributeLength()
Description copied from interface: IClassFileAttribute
Answer back the attribute length as specified in the JVM specifications.

Specified by:
getAttributeLength in interface IClassFileAttribute
Returns:
the attribute length
See Also:
IClassFileAttribute.getAttributeLength()