Class CstCallSite
java.lang.Object
com.android.dx.rop.cst.Constant
com.android.dx.rop.cst.CstArray
com.android.dx.rop.cst.CstCallSite
- All Implemented Interfaces:
ToHuman, Comparable<Constant>
Constant type to represent a call site.
-
Nested Class Summary
Nested classes/interfaces inherited from class CstArray
CstArray.List -
Method Summary
Modifier and TypeMethodDescriptionprotected intcompareTo0(Constant other) Compare the values of this and another instance, which are guaranteed to be of the same class.booleaninthashCode()booleanReturnstrueif this instance is a category-2 constant, meaning it takes up two slots in the constant pool, orfalseif this instance is category-1.static CstCallSitemake(CstMethodHandle bootstrapHandle, CstNat nat, BootstrapMethodArgumentsList optionalArguments) Creates an instance of aCstCallSite.toHuman()Return the "human" string form of this instance.toString()typeName()Returns the human name for the particular type of constant this instance is.
-
Method Details
-
make
public static CstCallSite make(CstMethodHandle bootstrapHandle, CstNat nat, BootstrapMethodArgumentsList optionalArguments) Creates an instance of aCstCallSite.- Parameters:
bootstrapHandle-non-null;the bootstrap method handle to invokenat-non-null;the name and type to be resolved by the bootstrap method handleoptionalArguments-null-ok;optional arguments to provide to the bootstrap method- Returns:
- a new
CstCallSiteinstance
-
equals
-
hashCode
-
compareTo0
Compare the values of this and another instance, which are guaranteed to be of the same class. Subclasses must implement this.- Overrides:
compareTo0in classCstArray- Parameters:
other-non-null;the instance to compare to- Returns:
-1,0, or1, as usual for a comparison
-
toString
-
typeName
-
isCategory2
public boolean isCategory2()Returnstrueif this instance is a category-2 constant, meaning it takes up two slots in the constant pool, orfalseif this instance is category-1.- Overrides:
isCategory2in classCstArray- Returns:
trueiff this instance is category-2
-
toHuman
-