java.lang.Object
io.helidon.service.codegen.ServiceSuperType
Definition of a super service type (if any).
Only classes can have super types, and only if they directly extend a class that has a service descriptor generated.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceSuperType
create()
Create a super type that represents "no supertype" (i.e.static ServiceSuperType
Create a registry based super type.Type name of the service descriptor of the super service type.boolean
empty()
Whether there is NOT a super service type.boolean
present()
Whether there is a super service type.typeInfo()
Type information of the super service type of this service.
-
Method Details
-
create
Create a registry based super type.- Parameters:
typeInfo
- type info of the super typedescriptorTypeName
- type name of the service descriptor of the extended type- Returns:
- a new super type for a real super type
-
create
Create a super type that represents "no supertype" (i.e. the only supertype isObject
).- Returns:
- super type that is not present
-
present
public boolean present()Whether there is a super service type.- Returns:
- if this service has a valid service super type
-
empty
public boolean empty()Whether there is NOT a super service type.- Returns:
- if the service does not have a valid super type
-
typeInfo
Type information of the super service type of this service.- Returns:
- type info of the super service type
- Throws:
IllegalStateException
- if this is not a valid super type, guard withpresent()
-
descriptorType
Type name of the service descriptor of the super service type.- Returns:
- type name of the service descriptor for the super service type
- Throws:
IllegalStateException
- if this is not a valid super type, guard withpresent()
-