org.aspectj.apache.bcel.classfile
Class Constant
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tag
protected byte tag
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