at.dms.classfile
Class Attribute
java.lang.Object
at.dms.classfile.Attribute
- Direct Known Subclasses:
- CodeInfo, ConstantValueAttribute, DeprecatedAttribute, ExceptionsAttribute, GenericAttribute, InnerClassTable, LineNumberTable, LocalVariableTable, SourceFileAttribute, SyntheticAttribute
public abstract class Attribute
- extends Object
This is the root class of every attribute
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final Attribute[] EMPTY
Attribute
public Attribute()
read
public static Attribute read(DataInput in,
ConstantPool cp)
throws IOException,
ClassFileFormatException
- Constructs an attribute from a class file stream
- Parameters:
in
- the stream to read fromcp
- the constant pool
- Throws:
IOException
- an io problem has occured
ClassFileFormatException
- attempt to
write a bad classfile info
readInterfaceOnly
public static Attribute readInterfaceOnly(DataInput in,
ConstantPool cp)
throws IOException,
ClassFileFormatException
- Constructs an attribute from a class file stream
- Parameters:
in
- the stream to read fromcp
- the constant pool
- Throws:
IOException
- an io problem has occured
ClassFileFormatException
- attempt to
write a bad classfile info
readCodeInfoAttribute
public static Attribute readCodeInfoAttribute(DataInput in,
ConstantPool cp,
Instruction[] insns)
throws IOException,
ClassFileFormatException
- Constructs an sub-attribute of CodeInfo from a class file stream
- Parameters:
in
- the stream to read fromcp
- the constant poolinsns
- (sparse) array of instructions
- Throws:
IOException
- an io problem has occured
ClassFileFormatException
- attempt to
write a bad classfile info