public class InvokeDynamicConstant extends Constant
| Modifier and Type | Field and Description |
|---|---|
Clazz[] |
referencedClasses
An extra field pointing to the Clazz objects referenced in the
descriptor string.
|
int |
u2bootstrapMethodAttributeIndex |
int |
u2nameAndTypeIndex |
visitorInfo| Constructor and Description |
|---|
InvokeDynamicConstant()
Creates an uninitialized InvokeDynamicConstant.
|
InvokeDynamicConstant(int u2bootstrapMethodAttributeIndex,
int u2nameAndTypeIndex,
Clazz[] referencedClasses)
Creates a new InvokeDynamicConstant with the given bootstrap method
and name-and-type indices.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
void |
bootstrapMethodHandleAccept(Clazz clazz,
ConstantVisitor constantVisitor)
Lets the bootstrap method handle constant accept the given visitor.
|
int |
getBootstrapMethodAttributeIndex()
Returns the index of the bootstrap method in the bootstrap methods
attribute of the class.
|
String |
getName(Clazz clazz)
Returns the method name.
|
int |
getNameAndTypeIndex()
Returns the name-and-type index.
|
int |
getTag()
Returns the constant pool info tag that specifies the entry type.
|
String |
getType(Clazz clazz)
Returns the method type.
|
void |
referencedClassesAccept(ClassVisitor classVisitor)
Lets the Clazz objects referenced in the descriptor string
accept the given visitor.
|
getVisitorInfo, setVisitorInfopublic int u2bootstrapMethodAttributeIndex
public int u2nameAndTypeIndex
public Clazz[] referencedClasses
ClassReferenceInitializer.
References to primitive types are ignored.public InvokeDynamicConstant()
public InvokeDynamicConstant(int u2bootstrapMethodAttributeIndex,
int u2nameAndTypeIndex,
Clazz[] referencedClasses)
u2bootstrapMethodAttributeIndex - the index of the bootstrap method
entry in the bootstrap methods
attribute.u2nameAndTypeIndex - the index of the name and type
entry in the constant pool.referencedClasses - the classes referenced by the
type.public int getBootstrapMethodAttributeIndex()
public int getNameAndTypeIndex()
public void referencedClassesAccept(ClassVisitor classVisitor)
public void bootstrapMethodHandleAccept(Clazz clazz, ConstantVisitor constantVisitor)
public int getTag()
Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
ConstantCopyright © 2015. All Rights Reserved.