@Immutable public abstract class PService extends PDeclaredDescriptor<Void>
Constructor and Description |
---|
PService(String programName,
String name,
PServiceProvider extendsService,
Collection<? extends PServiceMethod> methods) |
PService(String programName,
String name,
PServiceProvider extendsService,
PServiceMethod[] methods) |
Modifier and Type | Method and Description |
---|---|
Void |
getDefaultValue() |
PService |
getExtendsService()
Get the service that this service extends.
|
abstract PServiceMethod |
getMethod(String name)
Get the method definition for the given method name.
|
Collection<? extends PServiceMethod> |
getMethods()
Get the collection of methods for the service, including all inherited
services.
|
PType |
getType() |
boolean |
isAutoType() |
boolean |
isInnerType() |
getName, getProgramName, getQualifiedName, getTypeName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getQualifiedName
public PService(@Nonnull String programName, @Nonnull String name, @Nullable PServiceProvider extendsService, @Nonnull Collection<? extends PServiceMethod> methods)
public PService(@Nonnull String programName, @Nonnull String name, @Nullable PServiceProvider extendsService, @Nonnull PServiceMethod[] methods)
@Nullable public Void getDefaultValue()
getDefaultValue
in interface PDescriptor
getDefaultValue
in class PDeclaredDescriptor<Void>
public boolean isInnerType()
isInnerType
in class PDeclaredDescriptor<Void>
public boolean isAutoType()
isAutoType
in class PDeclaredDescriptor<Void>
@Nullable public PService getExtendsService()
@Nonnull public Collection<? extends PServiceMethod> getMethods()
@Nullable public abstract PServiceMethod getMethod(String name)
name
- The service method name.Copyright © 2015–2020 morimekta.net. All rights reserved.