Class GetMethodContext

java.lang.Object
com.ibm.wala.analysis.reflection.GetMethodContext
All Implemented Interfaces:
Context, ContextItem

public class GetMethodContext extends Object implements Context
A context which may be used if In the special case described above, 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 .

TODO Do the same for Class.getField(String) and Class.getDeclaredField(String).

Author:
Michael Heilmann
See Also:
  • Constructor Details

    • GetMethodContext

      public GetMethodContext(TypeAbstraction type, ConstantKey<String> name)
      Construct this GetMethodContext.
      Parameters:
      type - the type
      name - the name of the method
  • Method Details