public abstract class CstBaseMethodRef extends CstMemberRef
Note: As a TypeBearer, this class bears the return type
of the method.
| Modifier and Type | Method and Description |
|---|---|
protected int |
compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
int |
getParameterWordCount(boolean isStatic)
Gets the number of words of parameters required by this
method's descriptor.
|
Prototype |
getPrototype()
Gets the raw prototype of this method.
|
Prototype |
getPrototype(boolean isStatic)
Gets the prototype of this method as either a
static or instance method. |
Type |
getType()
Gets the type associated with this instance.
|
boolean |
isClassInit()
Gets whether this is a reference to a class initialization
method.
|
boolean |
isInstanceInit()
Gets whether this is a reference to an instance initialization
method.
|
boolean |
isSignaturePolymorphic()
Get whether this is a reference to a signature polymorphic
method.
|
equals, getDefiningClass, getNat, hashCode, isCategory2, toHuman, toStringgetBasicFrameType, getBasicType, getFrameType, isConstantpublic final Prototype getPrototype()
this argument.non-null; the method prototypepublic final Prototype getPrototype(boolean isStatic)
static or instance method. In the case of a
static method, this is the same as the raw
prototype. In the case of an instance method, this has an
appropriately-typed this argument as the first
one.isStatic - whether the method should be considered staticnon-null; the method prototypeprotected final int compareTo0(Constant other)
Note: This implementation just compares the defining
class and name, and it is up to subclasses to compare the rest
after calling super.compareTo0().
compareTo0 in class CstMemberRefother - non-null; the instance to compare to-1, 0, or 1, as usual
for a comparisonpublic final Type getType()
non-null; the method's return typepublic final int getParameterWordCount(boolean isStatic)
static or
instance context, one has to indicate this explicitly as an
argument. This method is just a convenient shorthand for
getPrototype().getParameterTypes().getWordCount(),
plus 1 if the method is to be treated as an
instance method.isStatic - whether the method should be considered static>= 0; the argument word countpublic final boolean isInstanceInit()
getNat().isInstanceInit().true iff this is a reference to an
instance initialization methodpublic final boolean isClassInit()
getNat().isClassInit().true iff this is a reference to an
instance initialization methodpublic final boolean isSignaturePolymorphic()
java.lang.invoke.MethodHandle and
is either the invoke or the invokeExact method.true iff this is a reference to a
signature polymorphic method.Copyright © 2020. All Rights Reserved.