Class JClass
java.lang.Object
edu.university.ecs.lab.common.models.JClass
- All Implemented Interfaces:
JsonSerializable
Represents a class in Java. It holds all information regarding that class including all method
declarations, method calls, fields, etc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns all endpoints found in the methods of this class, grouped under the same list as an Endpoint is an extension of a Method seeEndpoint
This method returns all restCalls found in the methodCalls of this class, grouped under the same list as an RestCall is an extension of a MethodCall seeRestCall
com.google.gson.JsonObject
Convert a single JClass to a JsonObject
-
Constructor Details
-
JClass
public JClass()
-
-
Method Details
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()Convert a single JClass to a JsonObject- Specified by:
toJsonObject
in interfaceJsonSerializable
- Returns:
- Converted JsonObject of JClass object
-
getEndpoints
This method returns all endpoints found in the methods of this class, grouped under the same list as an Endpoint is an extension of a Method seeEndpoint
- Returns:
- set of all endpoints
-
getRestCalls
This method returns all restCalls found in the methodCalls of this class, grouped under the same list as an RestCall is an extension of a MethodCall seeRestCall
- Returns:
- set of all restCalls
-