Class FallbackContextInterpreter

java.lang.Object
com.ibm.wala.ipa.callgraph.propagation.cfa.FallbackContextInterpreter
All Implemented Interfaces:
CHAContextInterpreter, RTAContextInterpreter, SSAContextInterpreter

public class FallbackContextInterpreter extends Object implements SSAContextInterpreter
This ContextInterpreter can be used when using another WALA frontend than the shrike frontend. WALA's standard ContextInterpreters, like e.g. DefaultSSAInterpreter delegate to CodeScanner, which assumes, that the provided methods are instances of shrike classes. When using these ContextInterpreter with another frontend than shrike, this leads to ClassCastExceptions. This class can be used to work around this issue. It delegates to a given ContextInterpreter, if the CGNode's IMethod is a Shrike class. Otherwise, it retrieves the required information from the CGNode's IR, which should always work.
Author:
Martin Mohr <martin.mohr@kit.edu>

This class is provided by the JOANA project (joana.ipd.kit.edu).