接口的使用
cn.taketoday.aot.generate.MethodReference.ArgumentCodeGenerator
程序包
说明
Support classes for components that contribute generated code equivalent to a
runtime behavior.
-
cn.taketoday.aot.generate中MethodReference.ArgumentCodeGenerator的使用
修饰符和类型方法说明MethodReference.ArgumentCodeGenerator.and(MethodReference.ArgumentCodeGenerator argumentCodeGenerator) Create a new composedMethodReference.ArgumentCodeGeneratorby combining this generator with the given generator.Create a new composedMethodReference.ArgumentCodeGeneratorby combining this generator with supporting the given argument type.MethodReference.ArgumentCodeGenerator.from(Function<cn.taketoday.javapoet.TypeName, cn.taketoday.javapoet.CodeBlock> function) Factory method that creates a newMethodReference.ArgumentCodeGeneratorfrom a lambda friendly function.MethodReference.ArgumentCodeGenerator.none()Factory method that returns anMethodReference.ArgumentCodeGeneratorthat always returnsnull.Factory method that can be used to create anMethodReference.ArgumentCodeGeneratorthat support only the given argument type.修饰符和类型方法说明protected voidDefaultMethodReference.addArguments(cn.taketoday.javapoet.CodeBlock.Builder code, MethodReference.ArgumentCodeGenerator argumentCodeGenerator) Add the code for the method arguments using the specifiedMethodReference.ArgumentCodeGeneratorif necessary.MethodReference.ArgumentCodeGenerator.and(MethodReference.ArgumentCodeGenerator argumentCodeGenerator) Create a new composedMethodReference.ArgumentCodeGeneratorby combining this generator with the given generator.cn.taketoday.javapoet.CodeBlockDefaultMethodReference.toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, cn.taketoday.javapoet.ClassName targetClassName) default cn.taketoday.javapoet.CodeBlockMethodReference.toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator) Return this method reference as aCodeBlockusing the specifiedMethodReference.ArgumentCodeGenerator.cn.taketoday.javapoet.CodeBlockMethodReference.toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, cn.taketoday.javapoet.ClassName targetClassName) Return this method reference as aCodeBlockusing the specifiedMethodReference.ArgumentCodeGenerator.