com.caucho.bytecode
Class Attribute

java.lang.Object
  extended by com.caucho.bytecode.Attribute
Direct Known Subclasses:
CodeAttribute, ExceptionsAttribute, OpaqueAttribute, SignatureAttribute, SourceDebugExtensionAttribute

@Module
public abstract class Attribute
extends java.lang.Object

Represents a generic attribute


Method Summary
 void addConstants(JavaClass javaClass)
          Update the JavaClass when adding.
 Attribute export(JavaClass cl, JavaClass target)
          Clones the attribute
 java.lang.String getName()
          Returns the attribute name.
 java.lang.String toString()
           
abstract  void write(ByteCodeWriter out)
          Writes the field to the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the attribute name.


addConstants

public void addConstants(JavaClass javaClass)
Update the JavaClass when adding.


write

public abstract void write(ByteCodeWriter out)
                    throws java.io.IOException
Writes the field to the output.

Throws:
java.io.IOException

export

public Attribute export(JavaClass cl,
                        JavaClass target)
Clones the attribute


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object