Class MethodCallFinder

java.lang.Object
org.somox.gast2seff.visitors.MethodCallFinder

public class MethodCallFinder extends Object
The class finds methodCalls within a statement. It also caches the found method calls for statements to improve performance.
  • Constructor Details

    • MethodCallFinder

      public MethodCallFinder()
  • Method Details

    • getMethodCalls

      public List<tools.mdsd.jamopp.model.java.members.Method> getMethodCalls(tools.mdsd.jamopp.model.java.statements.Statement statement)
      Get and returns the child method or constructor called contained in the statement.
      Parameters:
      statement - A statement
      Returns:
      A list of methods called if the statement contains one. Otherwise: an empty list