abstract class JavaIFDSProblem[Fact <: AbstractIFDSFact] extends IFDSProblem[Fact, Method, JavaStatement, JavaICFG]
- Alphabetic
- By Inheritance
- JavaIFDSProblem
- IFDSProblem
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type OutsideAnalysisContextCallHandler = (JavaStatement, Option[JavaStatement], Fact, Seq[Method], Getter) => Set[Fact] { def apply(call: org.opalj.tac.fpcf.analyses.ide.solver.JavaStatement, successor: Option[org.opalj.tac.fpcf.analyses.ide.solver.JavaStatement], in: Fact, unbCallChain: Seq[org.opalj.br.Method], dependeesGetter: org.opalj.ifds.Dependees.Getter): Set[Fact] }
- Definition Classes
- IFDSProblem
- type OutsideAnalysisContextUnbReturnHandler = (Method, Fact, Seq[Method], Getter) => Unit { def apply(callee: org.opalj.br.Method, in: Fact, callChain: Seq[org.opalj.br.Method], dependeesGetter: org.opalj.ifds.Dependees.Getter): Unit }
- Definition Classes
- IFDSProblem
Abstract Value Members
- abstract def callFlow(start: JavaStatement, in: Fact, call: JavaStatement, callee: Method): Set[Fact]
Computes the data flow for a call to start edge.
Computes the data flow for a call to start edge. The start node depends on the analysis direction (forward: entry of callee, backward: an exit/return statement).
- start
The statement, which starts the analysis of the 'callee'.
- in
The fact which holds before the execution of the
call.- call
The statement, which called the
callee.- callee
The called method, for which the data flow shall be computed.
- returns
The facts, which hold after the execution of
callunder the assumption that the factinheld beforecallandcallcallscallee.
- Definition Classes
- IFDSProblem
- abstract def callToReturnFlow(call: JavaStatement, in: Fact, successor: Option[JavaStatement], unbCallChain: Seq[Method]): Set[Fact]
Computes the data flow for a call to return edge.
Computes the data flow for a call to return edge.
- call
The statement, which invoked the call.
- in
The facts, which hold before the
call.- unbCallChain
The current call chain of unbalanced returns.
- returns
The facts, which hold after the call independently of what happens in the callee under the assumption that
inheld beforecall.
- Definition Classes
- IFDSProblem
- abstract def createFlowFactAtExit(callee: Method, in: Fact, unbalancedCallChain: Seq[Method]): Option[Fact]
Called, when new FlowFacts are found at the analysis exit of a method.
Called, when new FlowFacts are found at the analysis exit of a method. Creates a FlowFact in the callee context if necessary.
- callee
The callee.
- in
The newly found facts.
- unbalancedCallChain
the current call chain.
- returns
Some FlowFact, if necessary. Otherwise None.
- Definition Classes
- IFDSProblem
- abstract def entryPoints: Seq[(Method, IFDSFact[Fact, Method, JavaStatement])]
The entry points of this analysis.
The entry points of this analysis.
- Definition Classes
- IFDSProblem
- abstract def normalFlow(statement: JavaStatement, in: Fact, predecessor: Option[JavaStatement]): Set[Fact]
Computes the data flow for a normal statement.
Computes the data flow for a normal statement.
- statement
The analyzed statement.
- in
The fact which holds before the execution of the
statement.- predecessor
The predecessor of the analyzed
statement, for which the data flow shall be computed. Used for phi statements to distinguish the flow.- returns
The facts, which hold after the execution of
statementunder the assumption that the facts ininheld beforestatementandsuccessorwill be executed next.
- Definition Classes
- IFDSProblem
- abstract def nullFact: Fact
The null fact of this analysis.
The null fact of this analysis.
- Definition Classes
- IFDSProblem
- abstract def returnFlow(exit: JavaStatement, in: Fact, call: JavaStatement, successor: Option[JavaStatement], unbCallChain: Seq[Method]): Set[Fact]
Computes the data flow for an exit to return edge.
Computes the data flow for an exit to return edge. The exit node depends on the analysis direction (forward: an exit/return statement, backward: entry of callee).
- exit
The statement, which terminated the analysis of the
callee.- in
The fact which holds before the execution of the
exit.- call
The statement, which called the
callee.- successor
The successor statement of the call, might be None if unbalanced return.
- unbCallChain
The current call chain of unbalanced returns.
- returns
The facts, which hold after the execution of
exitin the caller's context under the assumption thatinheld before the execution ofexitand thatsuccessorwill be executed next.
- Definition Classes
- IFDSProblem
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def automaticallyPropagateNullFactInFlowFunctions: Boolean
- returns
Whether the null Fact is automatically added to the result of every flow function where it is passed into
- Definition Classes
- IFDSProblem
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def enableUnbalancedReturns: Boolean
- returns
Whether the analysis should follow unbalanced return flows (return of a method for which no matching previous call was processed).
- Definition Classes
- IFDSProblem
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val icfg: JavaICFG
- Definition Classes
- IFDSProblem
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def needsPredecessor(statement: JavaStatement): Boolean
- Definition Classes
- JavaIFDSProblem → IFDSProblem
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def outsideAnalysisContextCall(callee: Method): Option[OutsideAnalysisContextCallHandler]
Checks, if a callee is outside this analysis' context.
Checks, if a callee is outside this analysis' context. By default, native methods are not inside the analysis context. For callees outside this analysis' context the returned handler is called to compute the summary edge for the call instead of analyzing the callee.
- callee
The method called by
call.- returns
The handler function. It receives the statement which invoked the call, the successor statement, which will be executed after the call and the set of input facts which hold before the
call. It returns facts, which hold after the call, excluding the call to return flow.
- Definition Classes
- JavaIFDSProblem → IFDSProblem
- def outsideAnalysisContextUnbReturn(callee: Method): Option[OutsideAnalysisContextUnbReturnHandler]
Checks if there are unbalanced returns outside this analysis' context.
Checks if there are unbalanced returns outside this analysis' context. For unbalanced returns outside this analysis' context the returned handler is called to compute the return edge and trigger the callers' analyses.
- callee
the method from which an unbalanced return is performed.
- returns
the handler function. It receives the callee, the input fact, the existing call chain before this unbalanced return.
- Definition Classes
- JavaIFDSProblem → IFDSProblem
- def shouldPerformUnbalancedReturn(source: (Method, IFDSFact[Fact, Method, JavaStatement])): Boolean
Whether at this exit of a function, an unbalanced return should be performed.
Whether at this exit of a function, an unbalanced return should be performed. Only if enableUnbalancedReturns == true.
- source
the source fact of the analysis of the current function.
- returns
true if an unbalanced return should be performed.
- Definition Classes
- IFDSProblem
- def subsumeFacts: Boolean
- returns
Whether to try to subsume new facts under existing facts and save graph edges
- Definition Classes
- IFDSProblem
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated