public class GetMethodContext extends java.lang.Object implements Context
Class.getMethod(String, Class...)
or Class.getDeclaredMethod(String, Class...),
GetMethodContextInterpreter and GetMethodContextSelector should be preferred over JavaLangClassContextInterpreter and
JavaLangClassContextSelector, as GetMethodContextInterpreter and GetMethodContextSelector drastically reduce the number of methods returned increasing the
precision of the analysis. Thus, GetMethodContextInterpreter and GetMethodContextSelector should be placed in be placed in front of JavaLangClassContextInterpreter and JavaLangClassContextSelector .ContextItem.Value<T>| Constructor and Description |
|---|
GetMethodContext(TypeAbstraction type,
ConstantKey<java.lang.String> name)
Construct this GetMethodContext.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
ContextItem |
get(ContextKey name) |
java.lang.String |
getName()
Get the name.
|
TypeAbstraction |
getType()
Get the type.
|
int |
hashCode() |
java.lang.String |
toString() |
public GetMethodContext(TypeAbstraction type, ConstantKey<java.lang.String> name)
type - the typename - the name of the methodpublic ContextItem get(ContextKey name)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic TypeAbstraction getType()
public java.lang.String getName()