org.apache.bcel.classfile

## Interface ConstantObject

- All Known Implementing Classes:
    ConstantClass, ConstantDouble, ConstantFloat, ConstantInteger, ConstantLong, ConstantModule, ConstantPackage, ConstantString

      public interface ConstantObject

  This interface denotes those constants that have a "natural" value, such as ConstantLong, ConstantString, etc..
  See Also:
    `Constant`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getConstantValue(ConstantPool cp)`

- - ### Method Detail

    - #### getConstantValue

          Object getConstantValue(ConstantPool cp)

      Returns:
        object representing the constant, e.g., Long for ConstantLong

Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.