Interface RPCMethodGenerator
- All Known Implementing Classes:
BasicRPCMethodGenerator,ChainedRPCMethodGenerator
RPCMethodGenerator relies on preview features of the Java platform:
RPCMethodGeneratorrefers to one or more preview APIs:CodeBuilder.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An interface that is used to generate RPC method implementations.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(@NonNull CodeBuilderPREVIEW codeBuilder, @NonNull ClassDesc generatingClass, @NonNull RPCGenerationContext context, @NonNull RPCMethodMetadata targetMethod, @NonNull MethodTypeDesc targetMethodDesc) Generates the method body.
-
Method Details
-
generate
void generate(@NonNull @NonNull CodeBuilderPREVIEW codeBuilder, @NonNull @NonNull ClassDesc generatingClass, @NonNull @NonNull RPCGenerationContext context, @NonNull @NonNull RPCMethodMetadata targetMethod, @NonNull @NonNull MethodTypeDesc targetMethodDesc) Generates the method body.- Parameters:
codeBuilder- the code builder of the method body.generatingClass- the descriptor of the class that is being generated.context- the generation context.targetMethod- the target method that is being implemented.targetMethodDesc- the descriptor of the method that is being implemented.- Throws:
NullPointerException- if one of the given parameters is null.
-
RPCMethodGeneratorwhen preview features are enabled.