All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DE.fub.inf.JVM.JavaClass.Constant

java.lang.Object
   |
   +----DE.fub.inf.JVM.JavaClass.Constant

public abstract class Constant
extends Object
implements Constants
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:
970922
Author:
M. Dahm
See Also:
ConstantClass, ConstantFieldref, ConstantMethodref, ConstantInterfaceMethodref, ConstantString, ConstantInteger, ConstantFloat, ConstantLong, ConstantDouble, ConstantNameAndType, ConstantUtf8, ConstantUnicode

Variable Index

 o tag

Constructor Index

 o Constant()

Method Index

 o accept(Visitor)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.
 o dump(DataOutputStream)
 o getTag()
 o toString()

Variables

 o tag
 protected byte tag

Constructors

 o Constant
 public Constant()

Methods

 o accept
 public abstract void accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v - Visitor object
 o dump
 public abstract void dump(DataOutputStream file) throws IOException
 o getTag
 public final byte getTag()
Returns:
Tag of constant, i.e. its type. No setTag() method to avoid confusion.
 o toString
 public String toString()
Returns:
String representation.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index