harpoon.IR.RawClass
Class AttributeUnknown

java.lang.Object
  extended by harpoon.IR.RawClass.Attribute
      extended by harpoon.IR.RawClass.AttributeUnknown

public class AttributeUnknown
extends Attribute

An attribute of unknown format.

Version:
$Id: AttributeUnknown.java,v 1.2 2002/02/25 21:05:26 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
"The Java Virtual Machine Specification, section 4.7", Attribute

Field Summary
 byte[] info
          Generic attribute information of unknown type.
 
Fields inherited from class harpoon.IR.RawClass.Attribute
attribute_name_index, parent
 
Constructor Summary
AttributeUnknown(ClassFile parent, int attribute_name_index, byte[] info)
          Constructor.
 
Method Summary
 long attribute_length()
          The value of the attribute_length item indicates the length of the attribute, excluding the initial six bytes.
 void write(ClassDataOutputStream out)
          Write to bytecode stream.
 
Methods inherited from class harpoon.IR.RawClass.Attribute
attribute_name_index, attribute_name, print, read, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

public byte[] info
Generic attribute information of unknown type.

Constructor Detail

AttributeUnknown

public AttributeUnknown(ClassFile parent,
                        int attribute_name_index,
                        byte[] info)
Constructor.

Method Detail

attribute_length

public long attribute_length()
Description copied from class: Attribute
The value of the attribute_length item indicates the length of the attribute, excluding the initial six bytes.

Specified by:
attribute_length in class Attribute

write

public void write(ClassDataOutputStream out)
           throws IOException
Write to bytecode stream.

Specified by:
write in class Attribute
Throws:
IOException