CONSTANT_Package_info, representing a package, in the
constant pool of a class file.
The use of a PackageEntry is represented by a PackageDesc
that does not represent the unnamed package. Conversions are through
ConstantPoolBuilder#packageEntry(PackageDesc) and
asSymbol().
A package entry is composite:
PackageEntry(Utf8Entry name)
name is the internal form
of a binary package name and is not empty.
CONSTANT_Package_info Structure
| Modifier and Type | Method and Description |
|---|---|
| public PackageDesc | Returns: a symbolic descriptor for the package nameReturns a symbolic descriptor for the package name. |
| public boolean | Returns: whether this entry describes the given packagethe package descriptor desc)Returns whether this entry describes the given package. |
| public Utf8Entry |
| asSymbol | back to summary |
|---|---|
| public PackageDesc asSymbol() Returns a symbolic descriptor for the package name. API Note If only symbol equivalence is desired,
| |
| matches | back to summary |
|---|---|
| public boolean matches(PackageDesc desc) Returns whether this entry describes the given package.
| |
| name | back to summary |
|---|---|
| public Utf8Entry name() Returns the internal form of the package name.
| |