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
FieldsModifier and TypeFieldDescriptionprotected StringName of method that contains this callprotected StringThe class id that this MethodCall is called fromprotected StringThe name of the microservice this MethodCall is called fromprotected StringName of object that defines the called method (Maybe a static class instance, just whatever is before the ".")protected StringType of object that defines that methodprotected StringContents 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanmatchMethod(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
-