public final class MethodReference extends MemberReference
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodReference.Key
An identifier/selector for methods.
|
Modifier and Type | Field and Description |
---|---|
static Atom |
clinitName |
static Selector |
clinitSelector |
static Descriptor |
defaultInitDesc |
static Atom |
equalsAtom |
static Descriptor |
equalsDesc |
static Selector |
equalsSelector |
static Atom |
finalizeName |
static Selector |
finalizeSelector |
static Atom |
forNameAtom |
static Atom |
initAtom |
static Selector |
initSelector |
static MethodReference |
JavaLangClassForName |
static MethodReference |
JavaLangClassNewInstance |
static MemberReference |
JavaLangReflectCtorNewInstance |
static MethodReference |
lambdaMetafactory |
static Atom |
newInstanceAtom |
static Atom |
runAtom |
static Descriptor |
runDesc |
static Selector |
runSelector |
Modifier and Type | Method and Description |
---|---|
static MethodReference |
findOrCreate(ClassLoaderReference loader,
String methodClass,
String methodName,
String methodSignature) |
static MethodReference |
findOrCreate(Language l,
ClassLoaderReference loader,
String methodClass,
String methodName,
String methodSignature) |
static MethodReference |
findOrCreate(Language l,
TypeReference t,
String methodName,
String descriptor) |
static MethodReference |
findOrCreate(TypeReference tref,
Atom mn,
Descriptor md)
Find or create the canonical MethodReference instance for the given tuple.
|
static MethodReference |
findOrCreate(TypeReference tref,
Selector selector)
Find or create the canonical MethodReference instance for the given tuple.
|
static MethodReference |
findOrCreate(TypeReference t,
String methodName,
String descriptor) |
Descriptor |
getDescriptor() |
int |
getNumberOfParameters()
This method does NOT include the implicit "this" parameter
|
TypeReference |
getParameterType(int i) |
TypeReference |
getReturnType() |
Selector |
getSelector() |
String |
getSignature() |
boolean |
isInit() |
String |
toString() |
equals, getDeclaringClass, getName, hashCode
public static final Atom newInstanceAtom
public static final MethodReference JavaLangClassNewInstance
public static final MemberReference JavaLangReflectCtorNewInstance
public static final Atom forNameAtom
public static final MethodReference JavaLangClassForName
public static final Atom initAtom
public static final Descriptor defaultInitDesc
public static final Selector initSelector
public static final Atom clinitName
public static final Selector clinitSelector
public static final Atom finalizeName
public static final Selector finalizeSelector
public static final Atom runAtom
public static final Descriptor runDesc
public static final Selector runSelector
public static final Atom equalsAtom
public static final Descriptor equalsDesc
public static final Selector equalsSelector
public static final MethodReference lambdaMetafactory
public static MethodReference findOrCreate(TypeReference tref, Atom mn, Descriptor md)
mn
- the name of the membermd
- the descriptor of the memberpublic static MethodReference findOrCreate(TypeReference tref, Selector selector)
tref
- the type referenceselector
- the selector for the methodIllegalArgumentException
- if selector is nullpublic static MethodReference findOrCreate(TypeReference t, String methodName, String descriptor) throws IllegalArgumentException
IllegalArgumentException
public static MethodReference findOrCreate(Language l, TypeReference t, String methodName, String descriptor) throws IllegalArgumentException
IllegalArgumentException
public static MethodReference findOrCreate(ClassLoaderReference loader, String methodClass, String methodName, String methodSignature) throws IllegalArgumentException
IllegalArgumentException
public static MethodReference findOrCreate(Language l, ClassLoaderReference loader, String methodClass, String methodName, String methodSignature) throws IllegalArgumentException
IllegalArgumentException
public final Descriptor getDescriptor()
public final TypeReference getReturnType()
public final TypeReference getParameterType(int i) throws IllegalArgumentException
IllegalArgumentException
public boolean isInit()
public String getSignature()
getSignature
in class MemberReference
public Selector getSelector()
public int getNumberOfParameters()