Apache Tomcat 7.0.37

org.apache.tomcat.util.bcel.classfile
Class ConstantString

java.lang.Object
  extended by org.apache.tomcat.util.bcel.classfile.Constant
      extended by org.apache.tomcat.util.bcel.classfile.ConstantString
All Implemented Interfaces:
Serializable, Cloneable

public final class ConstantString
extends Constant

This class is derived from the abstract Constant class and represents a reference to a String object.

Version:
$Id: ConstantString.java 1377533 2012-08-26 22:22:59Z markt $
Author:
M. Dahm
See Also:
Constant, Serialized Form

Field Summary
 
Fields inherited from class org.apache.tomcat.util.bcel.classfile.Constant
tag
 
Constructor Summary
ConstantString(int string_index)
           
 
Method Summary
 int getStringIndex()
           
 String toString()
           
 
Methods inherited from class org.apache.tomcat.util.bcel.classfile.Constant
clone, equals, getTag, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantString

public ConstantString(int string_index)
Parameters:
string_index - Index of Constant_Utf8 in constant pool
Method Detail

getStringIndex

public final int getStringIndex()
Returns:
Index in constant pool of the string (ConstantUtf8).

toString

public final String toString()
Overrides:
toString in class Constant
Returns:
String representation.

Apache Tomcat 7.0.37

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.