public class RecursivenessTester
extends Object
Test if a method call is recursive if called within a given method node. Handles static calls as well.
Currently known simplifications:
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
isRecursive(Map<String, ASTNode> params)Tests whether the supplied call node is recursive within the supplied method node. |
|
public boolean |
isRecursive(MethodNode method, MethodCallExpression call)Tests whether an instance-style method call is recursive. |
|
public boolean |
isRecursive(MethodNode method, StaticMethodCallExpression call)Tests whether a static method call is recursive. |
Tests whether the supplied call node is recursive within the supplied method node.
params - a map containing method and call entriestrue if the call is recursive; false otherwiseTests whether an instance-style method call is recursive.
method - the enclosing methodcall - the method call to inspecttrue if the call targets the enclosing method; false otherwiseTests whether a static method call is recursive.
method - the enclosing methodcall - the static method call to inspecttrue if the call targets the enclosing method; false otherwise