@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 name,
String type)
Convenient method to add an argument reference.
|
List<ApiUsageMetadata.MethodArgument> |
getConstructorArguments()
Get constructor arguments.
|
List<ApiUsageMetadata.Invocation> |
getMethodInvocations()
Get method invocations.
|
String |
getQualifiedServiceClassName()
Get fully-qualified service class name.
|
String |
getQualifiedServiceInterfaceName()
Get fully-qualified service interface name.
|
String |
getQualifiedServiceMethodResult()
Get fully-qualified method result type.
|
static ApiUsageMetadata.Invocation |
method(String name)
Convenience method to create a new method invocation.
|
@Nonnull List<ApiUsageMetadata.MethodArgument> getConstructorArguments()
@Nonnull List<ApiUsageMetadata.Invocation> getMethodInvocations()
@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 name, @Nonnull String type)
name
- argument nametype
- argument type, fully qualified type name@Nonnull static ApiUsageMetadata.MethodArgument arg(@Nonnull String code)
code
- argument code, e.g. "5" or "\"String\""Copyright © 2021 SAP SE. All rights reserved.