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
Represents a method call in Java.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Name of method that contains this callprotected String
The class id that this MethodCall is called fromprotected String
The name of the microservice this MethodCall is called fromprotected String
Name of object that defines the called method (Maybe a static class instance, just whatever is before the ".")protected String
Type of object that defines that methodprotected String
Contents within the method call (params) but as a raw stringFields inherited from class edu.university.ecs.lab.common.models.ir.Node
name, packageAndClassName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
matchMethod
(MethodCall methodCall, Method method) Checks if a method call matches a given methodcom.google.gson.JsonObject
-
Field Details
-
objectName
Name of object that defines the called method (Maybe a static class instance, just whatever is before the ".") -
objectType
Type of object that defines that method -
calledFrom
Name of method that contains this call -
parameterContents
Contents within the method call (params) but as a raw string -
microserviceName
The name of the microservice this MethodCall is called from -
className
The class id that this MethodCall is called from
-
-
Constructor Details
-
MethodCall
-
-
Method Details
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()- Returns:
- a JsonObject representing this
-
matchMethod
Checks if a method call matches a given method- Parameters:
methodCall
- method call object to matchmethod
- method object to match- Returns:
- true if method call and method match, false otherwise
-