public class PackageConstant extends Constant
| Modifier and Type | Field and Description |
|---|---|
int |
u2nameIndex |
visitorInfo| Constructor and Description |
|---|
PackageConstant()
Creates an uninitialized PackageConstant.
|
PackageConstant(int u2nameIndex)
Creates a new PackageConstant with the given name index.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
String |
getName(Clazz clazz)
Returns the name.
|
int |
getTag()
Returns the constant pool info tag that specifies the entry type.
|
getVisitorInfo, setVisitorInfopublic PackageConstant()
public PackageConstant(int u2nameIndex)
u2nameIndex - the index of the name in the constant pool.public int getTag()
Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
ConstantCopyright © 2019. All rights reserved.