public interface AttributeFactory
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.| Modifier and Type | Method and Description |
|---|---|
Attribute |
createAttribute(ConstantPool cp,
String name,
int length,
DataInput din)
Create an attribute, using the provided name to determine which type.
|
Attribute createAttribute(ConstantPool cp, String name, int length, DataInput din) throws IOException
cp - ConstantPool, needed for constructing attributesname - Name of attributelength - Attribute length, in bytesdin - Attribute data sourceIOExceptionCopyright © 2004-2015 Cojen. All Rights Reserved.