public class GetMethodContext extends 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
.Constructor and Description |
---|
GetMethodContext(TypeAbstraction type,
ConstantKey name)
Construct this GetMethodContext.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ContextItem |
get(ContextKey name) |
String |
getName()
Get the name.
|
TypeAbstraction |
getType()
Get the type.
|
int |
hashCode() |
String |
toString() |
public GetMethodContext(TypeAbstraction type, ConstantKey name)
type
- the typename
- the name of the methodpublic ContextItem get(ContextKey name)
public TypeAbstraction getType()
public String getName()