org.aspectj.apache.bcel.classfile
Class AttributeUtils

java.lang.Object
  extended by org.aspectj.apache.bcel.classfile.AttributeUtils

public class AttributeUtils
extends java.lang.Object


Constructor Summary
AttributeUtils()
           
 
Method Summary
static void accept(Attribute[] attributes, ClassVisitor visitor)
           
static Code getCodeAttribute(Attribute[] attributes)
           
static ConstantValue getConstantValueAttribute(Attribute[] attributes)
           
static ExceptionTable getExceptionTableAttribute(Attribute[] attributes)
           
static Signature getSignatureAttribute(Attribute[] attributes)
           
static SourceFile getSourceFileAttribute(Attribute[] attributes)
           
static boolean hasSyntheticAttribute(Attribute[] attributes)
           
static Attribute[] readAttributes(java.io.DataInputStream dataInputstream, ConstantPool cpool)
           
static void writeAttributes(Attribute[] attributes, java.io.DataOutputStream file)
          Write (serialize) a set of attributes into a specified output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeUtils

public AttributeUtils()
Method Detail

readAttributes

public static Attribute[] readAttributes(java.io.DataInputStream dataInputstream,
                                         ConstantPool cpool)

writeAttributes

public static void writeAttributes(Attribute[] attributes,
                                   java.io.DataOutputStream file)
                            throws java.io.IOException
Write (serialize) a set of attributes into a specified output stream

Throws:
java.io.IOException

getSignatureAttribute

public static Signature getSignatureAttribute(Attribute[] attributes)

getCodeAttribute

public static Code getCodeAttribute(Attribute[] attributes)

getExceptionTableAttribute

public static ExceptionTable getExceptionTableAttribute(Attribute[] attributes)

getConstantValueAttribute

public static ConstantValue getConstantValueAttribute(Attribute[] attributes)

accept

public static void accept(Attribute[] attributes,
                          ClassVisitor visitor)

hasSyntheticAttribute

public static boolean hasSyntheticAttribute(Attribute[] attributes)

getSourceFileAttribute

public static SourceFile getSourceFileAttribute(Attribute[] attributes)