|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.types.MemberReference
com.ibm.wala.types.MethodReference
public final class MethodReference
A class to represent the reference in a class file to a method.
| Nested Class Summary | |
|---|---|
protected static class |
MethodReference.Key
An identifier/selector for methods. |
| Field Summary | |
|---|---|
static Atom |
clinitName
|
static Selector |
clinitSelector
|
static Descriptor |
defaultInitDesc
|
static Atom |
equalsAtom
|
static Descriptor |
equalsDesc
|
static Selector |
equalsSelector
|
static Atom |
forNameAtom
|
static Atom |
initAtom
|
static Selector |
initSelector
|
static MethodReference |
JavaLangClassForName
|
static MethodReference |
JavaLangClassNewInstance
|
static MemberReference |
JavaLangReflectCtorNewInstance
|
static Atom |
newInstanceAtom
|
static Atom |
runAtom
|
static Descriptor |
runDesc
|
static Selector |
runSelector
|
| Method Summary | |
|---|---|
static MethodReference |
findOrCreate(ClassLoaderReference loader,
java.lang.String methodClass,
java.lang.String methodName,
java.lang.String methodSignature)
|
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,
java.lang.String methodName,
java.lang.String descriptor)
|
Descriptor |
getDescriptor()
|
int |
getNumberOfParameters()
Method getNumberOfParameters. |
TypeReference |
getParameterType(int i)
|
TypeReference |
getReturnType()
|
Selector |
getSelector()
Method getSelector. |
java.lang.String |
getSignature()
Method getSignature. |
boolean |
isInit()
|
java.lang.String |
toString()
|
| Methods inherited from class com.ibm.wala.types.MemberReference |
|---|
equals, getDeclaringClass, getName, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 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
| Method Detail |
|---|
public static MethodReference findOrCreate(TypeReference tref,
Atom mn,
Descriptor md)
mn - the name of the membermd - the descriptor of the member
public static MethodReference findOrCreate(TypeReference tref,
Selector selector)
tref - the type referenceselector - the selector for the method
java.lang.IllegalArgumentException - if selector is null
public static MethodReference findOrCreate(TypeReference t,
java.lang.String methodName,
java.lang.String descriptor)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static MethodReference findOrCreate(ClassLoaderReference loader,
java.lang.String methodClass,
java.lang.String methodName,
java.lang.String methodSignature)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic final Descriptor getDescriptor()
public final java.lang.String toString()
toString in class java.lang.Objectpublic final TypeReference getReturnType()
public final TypeReference getParameterType(int i)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic boolean isInit()
public java.lang.String getSignature()
getSignature in class MemberReferencepublic Selector getSelector()
public int getNumberOfParameters()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||