org.apache.tomcat.util.bcel.classfile
Class ConstantClass
java.lang.Object
org.apache.tomcat.util.bcel.classfile.Constant
org.apache.tomcat.util.bcel.classfile.ConstantClass
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public final class ConstantClass
- extends Constant
This class is derived from the abstract
Constant class
and represents a reference to a (external) class.
- Version:
- $Id: ConstantClass.java 1181135 2011-10-10 18:51:44Z markt $
- Author:
- M. Dahm
- See Also:
Constant
,
Serialized Form
Fields inherited from class org.apache.tomcat.util.bcel.classfile.Constant |
tag |
Method Summary |
void |
dump(java.io.DataOutputStream file)
Dump constant class to file stream in binary format. |
int |
getNameIndex()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ConstantClass
public ConstantClass(int name_index)
- Parameters:
name_index
- Name index in constant pool. Should refer to a
ConstantUtf8.
dump
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
- Dump constant class to file stream in binary format.
- Specified by:
dump
in class Constant
- Parameters:
file
- Output file stream
- Throws:
java.io.IOException
getNameIndex
public final int getNameIndex()
- Returns:
- Name index in constant pool of class name.
toString
public final java.lang.String toString()
- Overrides:
toString
in class Constant
- Returns:
- String representation.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.