| org.cojen.classfile.AttributeFactory
AttributeFactory | public interface AttributeFactory (Code) | | Allows custom
Attribute Attributes to be constructed when a
ClassFile is read from a stream. The factory will be invoked only
when an unknown type of attribute type is read.
author: Brian S O'Neill |
createAttribute | Attribute createAttribute(ConstantPool cp, String name, int length, DataInput din) throws IOException(Code) | | Create an attribute, using the provided name to determine which type.
Return null if attribute type is unknown.
Parameters: cp - ConstantPool, needed for constructing attributes Parameters: name - Name of attribute Parameters: length - Attribute length, in bytes Parameters: din - Attribute data source |
|
|