gnu.bytecode

Class ConstantValueAttr


public class ConstantValueAttr
extends Attribute

Constructor Summary

ConstantValueAttr(Object value)
ConstantValueAttr(int index)

Method Summary

void
assignConstants(ClassType cl)
int
getLength()
Object
getValue(ConstantPool cpool)
void
print(ClassTypeWriter dst)
void
write(DataOutputStream dstr)

Methods inherited from class gnu.bytecode.Attribute

addToFrontOf, assignConstants, assignConstants, count, get, getContainer, getLength, getLengthAll, getName, getNameIndex, getNext, isSkipped, print, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, write, writeAll

Constructor Details

ConstantValueAttr

public ConstantValueAttr(Object value)

ConstantValueAttr

public ConstantValueAttr(int index)

Method Details

assignConstants

public void assignConstants(ClassType cl)
Overrides:
assignConstants in interface Attribute

getLength

public final int getLength()
Overrides:
getLength in interface Attribute

getValue

public Object getValue(ConstantPool cpool)

print

public void print(ClassTypeWriter dst)
Overrides:
print in interface Attribute

write

public void write(DataOutputStream dstr)
            throws java.io.IOException
Overrides:
write in interface Attribute