fr.umlv.corosol.classfile.constant.impl
Class JDK1_5JConstantClass

java.lang.Object
  extended by fr.umlv.corosol.classfile.constant.impl.AbstractJConstant
      extended by fr.umlv.corosol.classfile.constant.impl.DefaultJConstantClass
          extended by fr.umlv.corosol.classfile.constant.impl.JDK1_5JConstantClass
All Implemented Interfaces:
JConstant, JConstantClass, JLoadableConstant, JClassFileItem, JObject

public class JDK1_5JConstantClass
extends DefaultJConstantClass
implements JLoadableConstant

The jdk 1.5 implementation of the fr.umlv.corosol.classfile.constant.JConstantClass interface.

Author:
Christophe Deleray

Field Summary
 
Fields inherited from interface fr.umlv.corosol.classfile.constant.JConstant
CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELDREF, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACE_METHODREF, CONSTANT_LONG, CONSTANT_METHODREF, CONSTANT_NAME_AND_TYPE, CONSTANT_STRING, CONSTANT_UTF8
 
Constructor Summary
JDK1_5JConstantClass()
          The default constructor.
JDK1_5JConstantClass(JConstantPool constantPool, int nameIndex)
          Creates a new Constant_Class_info entry.
 
Method Summary
 void pushConstantValue(JStackFrame frame)
          Pushes the value onto the top of the operand stack of the specified stack frame.
 
Methods inherited from class fr.umlv.corosol.classfile.constant.impl.DefaultJConstantClass
getClassName, getNameIndex, readItem, setNameIndex, toString, writeItem
 
Methods inherited from class fr.umlv.corosol.classfile.constant.impl.AbstractJConstant
getConstantPool, getLength, getTag, setConstantPool
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.umlv.corosol.classfile.constant.JConstant
getLength, getTag, toString
 
Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem
getConstantPool, readItem, setConstantPool, writeItem
 

Constructor Detail

JDK1_5JConstantClass

public JDK1_5JConstantClass()
The default constructor.


JDK1_5JConstantClass

public JDK1_5JConstantClass(JConstantPool constantPool,
                            int nameIndex)
Creates a new Constant_Class_info entry.

Parameters:
constantPool - the constant pool
nameIndex - an index of an Constant_utf8_info entry that contains a class name
Method Detail

pushConstantValue

public void pushConstantValue(JStackFrame frame)
Pushes the value onto the top of the operand stack of the specified stack frame.

Specified by:
pushConstantValue in interface JLoadableConstant
Parameters:
frame - a stack frame