Class MethodCall

java.lang.Object
edu.university.ecs.lab.common.models.ir.Node
edu.university.ecs.lab.common.models.ir.MethodCall
All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
RestCall

public class MethodCall extends Node
Represents a method call in Java.
  • Field Details

    • objectName

      protected String objectName
      Name of object that defines the called method (Maybe a static class instance, just whatever is before the ".")
    • objectType

      protected String objectType
      Type of object that defines that method
    • calledFrom

      protected String calledFrom
      Name of method that contains this call
    • parameterContents

      protected String parameterContents
      Contents within the method call (params) but as a raw string
    • microserviceName

      protected String microserviceName
      The name of the microservice this MethodCall is called from
    • className

      protected String className
      The class id that this MethodCall is called from
  • Constructor Details

  • Method Details

    • toJsonObject

      public com.google.gson.JsonObject toJsonObject()
      Returns:
      a JsonObject representing this
    • matchMethod

      public static boolean matchMethod(MethodCall methodCall, Method method)
      Checks if a method call matches a given method
      Parameters:
      methodCall - method call object to match
      method - method object to match
      Returns:
      true if method call and method match, false otherwise