Class AttributeInfo
java.lang.Object
org.vesalainen.bcc.AttributeInfo
- All Implemented Interfaces:
Writable
- Direct Known Subclasses:
CodeAttribute, ConstantValue, ExceptionsAttribute, LineNumberTable, LocalVariableTable, LocalVariableTypeTable, RuntimeVisibleAnnotations, SignatureAttribute, SourceFileAttribute, SyntheticAttribute
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionAttributeInfo(ClassFile classFile, int attribute_name_index, int attribute_length) privateAttributeInfo(ClassFile classFile, int attribute_name_index, int attribute_length, DataInput in) AttributeInfo(ClassFile classFile, DataInput in) AttributeInfo(SubClass classFile, String attributeName) AttributeInfo(SubClass classFile, String attributeName, int attribute_length) -
Method Summary
Modifier and TypeMethodDescriptionintstatic AttributeInfogetInstance(ClassFile cf, DataInput in) static booleanisOfType(ClassFile cf, String type, AttributeInfo ai) voidwrite(DataOutput out)
-
Field Details
-
classFile
-
attribute_name_index
protected int attribute_name_index -
attribute_length
protected int attribute_length -
info
private byte[] info
-
-
Constructor Details
-
AttributeInfo
-
AttributeInfo
-
AttributeInfo
-
AttributeInfo
- Throws:
IOException
-
AttributeInfo
private AttributeInfo(ClassFile classFile, int attribute_name_index, int attribute_length, DataInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
getInstance
- Throws:
IOException
-
isOfType
-
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
getAttributeSize
public int getAttributeSize()
-