| Modifier and Type | Method and Description |
|---|---|
CstCallSiteRef |
addReference()
Creates a
CstCallSiteRef that refers to this instance. |
protected int |
compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
int |
getBootstrapMethodIndex()
Gets the bootstrap method index.
|
CstCallSite |
getCallSite()
Gets the call site associated with this instance.
|
CstType |
getDeclaringClass()
Gets the declaring class of this instance.
|
CstNat |
getNat()
Gets the
CstNat value. |
Prototype |
getPrototype()
Gets the
Prototype of the invokedynamic call site. |
java.util.List<CstCallSiteRef> |
getReferences()
Gets the list of references to this instance.
|
Type |
getReturnType()
Gets the return type.
|
boolean |
isCategory2()
Returns
true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1. |
static CstInvokeDynamic |
make(int bootstrapMethodIndex,
CstNat nat)
Makes an instance for the given value.
|
void |
setCallSite(CstCallSite callSite)
Sets the call site associated with this instance.
|
void |
setDeclaringClass(CstType declaringClass)
Sets the declaring class of this instance.
|
java.lang.String |
toHuman()
Return the "human" string form of this instance.
|
java.lang.String |
toString() |
java.lang.String |
typeName()
Returns the human name for the particular type of constant
this instance is.
|
public static CstInvokeDynamic make(int bootstrapMethodIndex, CstNat nat)
bootstrapMethodIndex - The index of the bootstrap method in the bootstrap method tablenat - the name and typenon-null; the appropriate instancepublic CstCallSiteRef addReference()
CstCallSiteRef that refers to this instance.non-null; a reference to this instancepublic java.util.List<CstCallSiteRef> getReferences()
non-null; the list of references to this instancepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String typeName()
public java.lang.String toHuman()
toString().non-null; the human string formpublic boolean isCategory2()
true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1.isCategory2 in class Constanttrue iff this instance is category-2protected int compareTo0(Constant other)
compareTo0 in class Constantother - non-null; the instance to compare to-1, 0, or 1, as usual
for a comparisonpublic int getBootstrapMethodIndex()
public CstNat getNat()
CstNat value.public Prototype getPrototype()
Prototype of the invokedynamic call site.invokedynamic call site prototypepublic Type getReturnType()
non-null; the return typepublic void setDeclaringClass(CstType declaringClass)
declaringClass - non-null; the declaring classpublic CstType getDeclaringClass()
public void setCallSite(CstCallSite callSite)
callSite - non-null; the call site created for this instancepublic CstCallSite getCallSite()
Copyright © 2020. All Rights Reserved.