net.sf.rej.java.attribute
Class Attributes

java.lang.Object
  extended by net.sf.rej.java.attribute.Attributes

public class Attributes
extends java.lang.Object


Constructor Summary
Attributes()
           
Attributes(ByteParser parser, ConstantPool pool)
           
 
Method Summary
 void addAttribute(Attribute attr)
           
 java.util.List<Attribute> getAttributes()
           
 CodeAttribute getCode()
           
 ConstantValueAttribute getConstantValueAttribute()
           
 byte[] getData()
           
 DeprecatedAttribute getDeprecatedAttribute()
           
 ExceptionsAttribute getExceptionsAttribute()
           
 LineNumberTableAttribute getLineNumberTable()
           
 LocalVariableTableAttribute getLocalVariableTable()
           
 LocalVariableTypeTableAttribute getLocalVariableTypeTable()
           
 Attribute getNamedAttribute(java.lang.String name)
           
 java.util.Map<java.lang.Object,Range> getOffsetMap(int initialOffset)
          Returns a map of offsets of each significant element of this method.
 RuntimeInvisibleAnnotationsAttribute getRuntimeInvisibleAnnotationsAttribute()
           
 RuntimeVisibleAnnotationsAttribute getRuntimeVisibleAnnotationsAttribute()
           
 SignatureAttribute getSignatureAttribute()
           
 SourceFileAttribute getSourceFileAttribute()
           
 SyntheticAttribute getSyntheticAttribute()
           
 void removeAttribute(Attribute attr)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attributes

public Attributes()

Attributes

public Attributes(ByteParser parser,
                  ConstantPool pool)
Method Detail

getAttributes

public java.util.List<Attribute> getAttributes()

getLineNumberTable

public LineNumberTableAttribute getLineNumberTable()

getLocalVariableTable

public LocalVariableTableAttribute getLocalVariableTable()

getSyntheticAttribute

public SyntheticAttribute getSyntheticAttribute()

getDeprecatedAttribute

public DeprecatedAttribute getDeprecatedAttribute()

getSourceFileAttribute

public SourceFileAttribute getSourceFileAttribute()

getExceptionsAttribute

public ExceptionsAttribute getExceptionsAttribute()

getSignatureAttribute

public SignatureAttribute getSignatureAttribute()

getLocalVariableTypeTable

public LocalVariableTypeTableAttribute getLocalVariableTypeTable()

getRuntimeVisibleAnnotationsAttribute

public RuntimeVisibleAnnotationsAttribute getRuntimeVisibleAnnotationsAttribute()

getRuntimeInvisibleAnnotationsAttribute

public RuntimeInvisibleAnnotationsAttribute getRuntimeInvisibleAnnotationsAttribute()

getCode

public CodeAttribute getCode()

getConstantValueAttribute

public ConstantValueAttribute getConstantValueAttribute()

getNamedAttribute

public Attribute getNamedAttribute(java.lang.String name)

getData

public byte[] getData()

getOffsetMap

public java.util.Map<java.lang.Object,Range> getOffsetMap(int initialOffset)
Returns a map of offsets of each significant element of this method. The offsets returned by this method are only valid until this object is modified. The keys in the map are of type OffsetTag, Interface, Field and Method.

Parameters:
initialOffset - the initial offset (this is added to each offset value).
Returns:
a map of element offsets in class file data.

removeAttribute

public void removeAttribute(Attribute attr)

addAttribute

public void addAttribute(Attribute attr)