Interface ApiUsageMetadata
- All Known Implementing Classes:
ODataApiUsageMetadata
,RestApiUsageMetadata
public interface ApiUsageMetadata
Metadata about API usage.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Method invocation type.static interface
A method argument.static final class
A method argument as variable reference.static final class
A method argument as static code. -
Method Summary
Modifier and TypeMethodDescriptionConvenient method to add static argument code.Convenient method to add static argument code.Get fully-qualified service class name.Get fully-qualified service interface name.Get fully-qualified method result type.Get constructor arguments.Get method invocations.static ApiUsageMetadata.Invocation
Convenience method to create a new method invocation.
-
Method Details
-
getServiceConstructorArguments
Get constructor arguments.- Returns:
- A sorted list of constructor arguments.
-
getServiceMethodInvocations
Get method invocations.- Returns:
- A sorted list of method invocations.
-
getQualifiedServiceInterfaceName
Get fully-qualified service interface name.- Returns:
- The service interface name.
-
getQualifiedServiceClassName
Get fully-qualified service class name.- Returns:
- The service class name.
-
getQualifiedServiceMethodResult
Get fully-qualified method result type.- Returns:
- The method result type.
-
method
Convenience method to create a new method invocation.- Parameters:
name
- method name- Returns:
- A new instance of a method invocation.
-
arg
Convenient method to add static argument code.- Parameters:
code
- argument code, e.g. "5" or "\"String\""- Returns:
- A new instance with an additional argument
-
arg
Convenient method to add static argument code.- Parameters:
code
- argument code, e.g. "5" or "\"String\""type
- argument type, e.g. java.lang.String- Returns:
- A new instance with an additional argument
-