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, ConstantLong, 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.
- Version:
- $Id: Constant.java,v 1.5 2009/09/10 15:35:04 aclement Exp $
- Author:
- M. Dahm
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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