Delegate implementations.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ValueCodeGenerator.Delegate
Strategy interface that can be used to implement code generation for a particular value type. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final GeneratedMethods | |
| private static final ValueCodeGenerator | |
| private static final CodeBlock |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ValueCodeGenerator | |
| public CodeBlock | Returns: the code that represents the specified valuethe value to generate value)Generate the code that represents the specified |
| public GeneratedMethods | Returns: the generated methods to use for code generationReturn the |
| public ValueCodeGenerator | Returns: an instance scoped to the specified generated methodsthe generated methods to use generatedMethods)Return a |
| public static ValueCodeGenerator | Returns: an instance with the specified delegatesthe delegates to use delegatesCreate an instance with the specified |
| public static ValueCodeGenerator | Returns: an instance with the specified delegatesthe delegates to use delegatesCreate an instance with the specified |
| public static ValueCodeGenerator | Returns: an instance with support for common value typesReturn an instance that provides support for common value types. |
| delegates | back to summary |
|---|---|
| private final List<ValueCodeGenerator. | |
| generatedMethods | back to summary |
|---|---|
| private final GeneratedMethods generatedMethods
| |
| INSTANCE | back to summary |
|---|---|
| private static final ValueCodeGenerator INSTANCE | |
| NULL_VALUE_CODE_BLOCK | back to summary |
|---|---|
| private static final CodeBlock NULL_VALUE_CODE_BLOCK | |
| ValueCodeGenerator | back to summary |
|---|---|
| private ValueCodeGenerator(List<ValueCodeGenerator. | |
| add | back to summary |
|---|---|
| public ValueCodeGenerator add(List<ValueCodeGenerator. | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(Object value) Generate the code that represents the specified | |
| getGeneratedMethods | back to summary |
|---|---|
| public GeneratedMethods getGeneratedMethods() Return the
| |
| scoped | back to summary |
|---|---|
| public ValueCodeGenerator scoped(GeneratedMethods generatedMethods) Return a
| |
| with | back to summary |
|---|---|
| public static ValueCodeGenerator with(ValueCodeGenerator. Create an instance with the specified
| |
| with | back to summary |
|---|---|
| public static ValueCodeGenerator with(List<ValueCodeGenerator. Create an instance with the specified
| |
| withDefaults | back to summary |
|---|---|
| public static ValueCodeGenerator withDefaults() Return an instance that provides support for common value types.
| |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | Returns: the code that represents the specified value ornull if
the specified value is not supported.the code generator to use for embedded values valueCodeGenerator, Object the value to generate value)Generate the code for the specified non-null |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator valueCodeGenerator, Object value) Generate the code for the specified non-null
| |