ConstantClass (Apache Tomcat 9.0.121 API Documentation)
Description: declaration: package: org.apache.tomcat.util.bcel.classfile, class: ConstantClass

# Class ConstantClass

java.lang.Object
org.apache.tomcat.util.bcel.classfile.Constant
org.apache.tomcat.util.bcel.classfile.ConstantClass

public final class ConstantClass extends Constant
This class is derived from the abstract `Constant` and represents a reference to a (external) class.

See Also:
  - `Constant`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getNameIndex()`
  Gets the name index in constant pool of class name.

  ### Methods inherited from class Constant

  `getTag, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### getNameIndex

    public int getNameIndex()
    Gets the name index in constant pool of class name.
    Returns:
      Name index in constant pool of class name.