Record Class ServiceRouteDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.ServiceRouteDetails
- Record Components:
serviceFqn- Fully qualified service name (e.g., "example.services::DataService")baseUri- Service base URI (e.g., "/data")routes- One entry per service operationdebugInfo- Source location of the service declaration
public record ServiceRouteDetails(String serviceFqn, String baseUri, List<ServiceRouteDetails.RouteEntry> routes, DebugInfo debugInfo)
extends Record
Complete route table for a single EK9 service.
Contains all HTTP metadata needed by backends to generate request routing,
parameter extraction, and handler registration — without any symbol table access.
All type references are FQN strings, following the same pattern as
AspectProxyDetails.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBinding for a single parameter to its HTTP source.static final recordA single service operation's HTTP route metadata. -
Constructor Summary
ConstructorsConstructorDescriptionServiceRouteDetails(String serviceFqn, String baseUri, List<ServiceRouteDetails.RouteEntry> routes, DebugInfo debugInfo) Create service route details with validation. -
Method Summary
Modifier and TypeMethodDescriptionbaseUri()Returns the value of thebaseUrirecord component.Returns the value of thedebugInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intGet the number of routes in this service.routes()Returns the value of theroutesrecord component.Returns the value of theserviceFqnrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ServiceRouteDetails
public ServiceRouteDetails(String serviceFqn, String baseUri, List<ServiceRouteDetails.RouteEntry> routes, DebugInfo debugInfo) Create service route details with validation.
-
-
Method Details
-
routeCount
public int routeCount()Get the number of routes in this service. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
serviceFqn
Returns the value of theserviceFqnrecord component.- Returns:
- the value of the
serviceFqnrecord component
-
baseUri
-
routes
-
debugInfo
-