Class Method
java.lang.Object
edu.university.ecs.lab.common.models.ir.Node
edu.university.ecs.lab.common.models.ir.Method
- All Implemented Interfaces:
JsonSerializable
- Direct Known Subclasses:
Endpoint
Represents a method declaration in Java.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Set<Annotation>
Method definition level annotationsprotected String
The class id that this method belongs toprotected String
The microservice id that this method belongs toSet of fields representing parametersprotected String
Java return type of the methodFields inherited from class edu.university.ecs.lab.common.models.ir.Node
name, packageAndClassName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseParameters
(com.github.javaparser.ast.NodeList<com.github.javaparser.ast.body.Parameter> parameters) Get set of parameters from node listcom.google.gson.JsonObject
-
Field Details
-
parameters
Set of fields representing parameters -
returnType
Java return type of the method -
microserviceName
The microservice id that this method belongs to -
annotations
Method definition level annotations -
className
The class id that this method belongs to
-
-
Constructor Details
-
Method
-
Method
public Method(com.github.javaparser.ast.body.MethodDeclaration methodDeclaration)
-
-
Method Details
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()- Returns:
- a JsonObject representing this
-
parseParameters
private Set<Parameter> parseParameters(com.github.javaparser.ast.NodeList<com.github.javaparser.ast.body.Parameter> parameters) Get set of parameters from node list- Parameters:
parameters
- Node list of javaparser parameter objects- Returns:
- set of parameter objects
-