| Modifier and Type | Class and Description |
|---|---|
| public static interface | MethodReference.ArgumentCodeGenerator
Strategy for generating code for arguments based on their type. |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | Returns: a code block for the method reference.Return this method reference as a |
| public default CodeBlock | Returns: a code block to invoke the methodthe argument code generator to use argumentCodeGeneratorReturn this method reference as a |
| public CodeBlock | Returns: a code block to invoke the methodthe argument code generator to use argumentCodeGenerator,the target class name targetClassName)Return this method reference as a |
| toCodeBlock | back to summary |
|---|---|
| public CodeBlock toCodeBlock() Return this method reference as a
| |
| toInvokeCodeBlock | back to summary |
|---|---|
| public default CodeBlock toInvokeCodeBlock(MethodReference. Return this method reference as a
| |
| toInvokeCodeBlock | back to summary |
|---|---|
| public CodeBlock toInvokeCodeBlock(MethodReference. Return this method reference as a If the caller has an instance of the type in which this method is defined, it can hint that by specifying the type as a target class.
| |
| Modifier and Type | Method and Description |
|---|---|
| public default MethodReference. | Returns: a new compositeArgumentCodeGenerator instancethe argument type argumentType, String the code for an argument of that type argumentCode)Create a new composed |
| public default MethodReference. | Returns: a new compositeArgumentCodeGenerator instancethe argument generator to add argumentCodeGeneratorCreate a new composed |
| public static MethodReference. | Returns: a newArgumentCodeGenerator instance backed by the functionthe resolver function function)Factory method that creates a new |
| public CodeBlock | Returns: the code for this argument, ornullthe argument type argumentType)Generate the code for the given argument type. |
| public static MethodReference. | Returns: a newArgumentCodeGenerator instanceFactory method that returns an |
| public static MethodReference. | Returns: a newArgumentCodeGenerator instancethe argument type argumentType, String the code for an argument of that type argumentCode)Factory method that can be used to create an |
| and | back to summary |
|---|---|
| public default MethodReference. Create a new composed
| |
| and | back to summary |
|---|---|
| public default MethodReference. Create a new composed
| |
| from | back to summary |
|---|---|
| public static MethodReference. Factory method that creates a new
| |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(TypeName argumentType) Generate the code for the given argument type. If this type is
not supported, return | |
| none | back to summary |
|---|---|
| public static MethodReference. Factory method that returns an
| |
| of | back to summary |
|---|---|
| public static MethodReference. Factory method that can be used to create an
| |