org.aspectj.apache.bcel.classfile
Class Constant

java.lang.Object
  extended by org.aspectj.apache.bcel.classfile.Constant
All Implemented Interfaces:
java.lang.Cloneable, Node
Direct Known Subclasses:
ConstantClass, ConstantCP, ConstantDouble, ConstantFloat, ConstantInteger, ConstantInvokeDynamic, ConstantLong, ConstantMethodHandle, ConstantMethodType, ConstantNameAndType, ConstantString, ConstantUtf8

public abstract class Constant
extends java.lang.Object
implements java.lang.Cloneable, Node

Abstract superclass for classes to represent the different constant types in the constant pool of a class file. The classes keep closely to the JVM specification.


Field Summary
protected  byte tag
           
 
Method Summary
abstract  void accept(ClassVisitor v)
           
 java.lang.Object clone()
           
 Constant copy()
           
abstract  void dump(java.io.DataOutputStream dataOutputStream)
           
 byte getTag()
           
abstract  java.lang.Object getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tag

protected byte tag
Method Detail

getTag

public final byte getTag()

toString

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

accept

public abstract void accept(ClassVisitor v)
Specified by:
accept in interface Node

dump

public abstract void dump(java.io.DataOutputStream dataOutputStream)
                   throws java.io.IOException
Throws:
java.io.IOException

getValue

public abstract java.lang.Object getValue()

copy

public Constant copy()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException