@Beta
public interface ApiUsageMetadata
Modifier and Type | Interface and Description |
---|---|
static class |
ApiUsageMetadata.Invocation
Method invocation type.
|
static interface |
ApiUsageMetadata.MethodArgument
A method argument.
|
static class |
ApiUsageMetadata.MethodArgumentDynamic
A method argument as variable reference.
|
static class |
ApiUsageMetadata.MethodArgumentStatic
A method argument as static code.
|
Modifier and Type | Method and Description |
---|---|
static ApiUsageMetadata.MethodArgument |
arg(String code)
Convenient method to add static argument code.
|
static ApiUsageMetadata.MethodArgument |
arg(String code,
Class<?> type)
Convenient method to add static argument code.
|
String |
getQualifiedServiceClassName()
Get fully-qualified service class name.
|
String |
getQualifiedServiceInterfaceName()
Get fully-qualified service interface name.
|
String |
getQualifiedServiceMethodResult()
Get fully-qualified method result type.
|
List<ApiUsageMetadata.MethodArgument> |
getServiceConstructorArguments()
Get constructor arguments.
|
List<ApiUsageMetadata.Invocation> |
getServiceMethodInvocations()
Get method invocations.
|
static ApiUsageMetadata.Invocation |
method(String name)
Convenience method to create a new method invocation.
|
@Nonnull List<ApiUsageMetadata.MethodArgument> getServiceConstructorArguments()
@Nonnull List<ApiUsageMetadata.Invocation> getServiceMethodInvocations()
@Nonnull String getQualifiedServiceInterfaceName()
@Nonnull String getQualifiedServiceClassName()
@Nonnull String getQualifiedServiceMethodResult()
@Nonnull static ApiUsageMetadata.Invocation method(@Nonnull String name)
name
- method name@Nonnull static ApiUsageMetadata.MethodArgument arg(@Nonnull String code)
code
- argument code, e.g. "5" or "\"String\""@Nonnull static ApiUsageMetadata.MethodArgument arg(@Nonnull String code, @Nonnull Class<?> type)
code
- argument code, e.g. "5" or "\"String\""type
- argument type, e.g. java.lang.StringCopyright © 2021 SAP SE. All rights reserved.