public class MethodTypeConstant extends Constant
| Modifier and Type | Field and Description |
|---|---|
Clazz |
javaLangInvokeMethodTypeClass
An extra field pointing to the java.lang.invoke.MethodType Clazz object.
|
Clazz[] |
referencedClasses
An extra field pointing to the Clazz objects referenced in the
descriptor string.
|
int |
u2descriptorIndex |
visitorInfo| Constructor and Description |
|---|
MethodTypeConstant()
Creates an uninitialized MethodTypeConstant.
|
MethodTypeConstant(int u2descriptorIndex)
Creates a new MethodTypeConstant with the given descriptor index.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
int |
getDescriptorIndex()
Returns the descriptor index.
|
int |
getTag()
Returns the constant pool info tag that specifies the entry type.
|
String |
getType(Clazz clazz)
Returns the type.
|
void |
referencedClassesAccept(ClassVisitor classVisitor)
Lets the Clazz objects referenced in the descriptor string
accept the given visitor.
|
getVisitorInfo, setVisitorInfopublic int u2descriptorIndex
public Clazz javaLangInvokeMethodTypeClass
ClassReferenceInitializer..public Clazz[] referencedClasses
ClassReferenceInitializer.
References to primitive types are ignored.public MethodTypeConstant()
public MethodTypeConstant(int u2descriptorIndex)
u2descriptorIndex - the index of the descriptor in the constant
pool.public int getDescriptorIndex()
public void referencedClassesAccept(ClassVisitor classVisitor)
public int getTag()
Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
ConstantCopyright © 2015. All Rights Reserved.