Class ConstantPackage

java.lang.Object
org.apache.bcel.classfile.Constant
org.apache.bcel.classfile.ConstantPackage
All Implemented Interfaces:
Cloneable, ConstantObject, Node

public final class ConstantPackage extends Constant implements ConstantObject
This class is derived from the abstract Constant and represents a reference to a package.

Note: Early access Java 9 support- currently subject to change

Since:
6.1
See Also:
  • Constructor Details

    • ConstantPackage

      Initialize from another object.
      Parameters:
      c - Source to copy.
    • ConstantPackage

      public ConstantPackage(int nameIndex)
      Parameters:
      nameIndex - Name index in constant pool. Should refer to a ConstantUtf8.
  • Method Details