# Uses of Interface
org.springframework.aot.generate.MethodReference.ArgumentCodeGenerator

Packages that use MethodReference.ArgumentCodeGenerator
Package
Description
org.springframework.aot.generate
Support classes for components that contribute generated code equivalent to a runtime behavior.

## Uses of MethodReference.ArgumentCodeGenerator in org.springframework.aot.generate

Methods in org.springframework.aot.generate that return MethodReference.ArgumentCodeGenerator
Modifier and Type
Method
Description
`default MethodReference.ArgumentCodeGenerator`
MethodReference.ArgumentCodeGenerator.`and(Class<?> argumentType, String argumentCode)`
Create a new composed `MethodReference.ArgumentCodeGenerator` by combining this generator with supporting the given argument type.
`default MethodReference.ArgumentCodeGenerator`
MethodReference.ArgumentCodeGenerator.`and(MethodReference.ArgumentCodeGenerator argumentCodeGenerator)`
Create a new composed `MethodReference.ArgumentCodeGenerator` by combining this generator with the given generator.
`static MethodReference.ArgumentCodeGenerator`
MethodReference.ArgumentCodeGenerator.`from(Function<org.springframework.javapoet.TypeName,org.springframework.javapoet.CodeBlock> function)`
Factory method that creates a new `MethodReference.ArgumentCodeGenerator` from a lambda friendly function.
`static MethodReference.ArgumentCodeGenerator`
MethodReference.ArgumentCodeGenerator.`none()`
Factory method that returns an `MethodReference.ArgumentCodeGenerator` that always returns `null`.
`static MethodReference.ArgumentCodeGenerator`
MethodReference.ArgumentCodeGenerator.`of(Class<?> argumentType, String argumentCode)`
Factory method that can be used to create an `MethodReference.ArgumentCodeGenerator` that support only the given argument type.
Methods in org.springframework.aot.generate with parameters of type MethodReference.ArgumentCodeGenerator
Modifier and Type
Method
Description
`protected void`
DefaultMethodReference.`addArguments(org.springframework.javapoet.CodeBlock.Builder code, MethodReference.ArgumentCodeGenerator argumentCodeGenerator)`
Add the code for the method arguments using the specified `MethodReference.ArgumentCodeGenerator` if necessary.
`default MethodReference.ArgumentCodeGenerator`
MethodReference.ArgumentCodeGenerator.`and(MethodReference.ArgumentCodeGenerator argumentCodeGenerator)`
Create a new composed `MethodReference.ArgumentCodeGenerator` by combining this generator with the given generator.
`org.springframework.javapoet.CodeBlock`
DefaultMethodReference.`toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, org.springframework.javapoet.ClassName targetClassName)`
`default org.springframework.javapoet.CodeBlock`
MethodReference.`toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator)`
Return this method reference as a `CodeBlock` using the specified `MethodReference.ArgumentCodeGenerator`.
`org.springframework.javapoet.CodeBlock`
MethodReference.`toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, org.springframework.javapoet.ClassName targetClassName)`
Return this method reference as a `CodeBlock` using the specified `MethodReference.ArgumentCodeGenerator`.