Delegate for well known value types.
| Modifier and Type | Class and Description |
|---|---|
| private static class | ValueCodeGeneratorDelegates.
|
| private static class | |
| private static class | |
| public abstract static class | ValueCodeGeneratorDelegates.
type the collection type T extends CollectionAbstract |
| private static class | |
| private static class | |
| public static class | |
| private static class | ValueCodeGeneratorDelegates.
|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final List |
| Access | Constructor and Description |
|---|---|
| public |
| INSTANCES | back to summary |
|---|---|
| public static final List<ValueCodeGenerator. Return the
ValueCodeGenerator to be
scoped.
| |
| ValueCodeGeneratorDelegates | back to summary |
|---|---|
| public ValueCodeGeneratorDelegates() | |
Delegate for array types.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values codeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| ArrayDelegate | back to summary |
|---|---|
| private ArrayDelegate() | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator codeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values codeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| CharsetDelegate | back to summary |
|---|---|
| private CharsetDelegate() | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator codeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values codeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| ClassDelegate | back to summary |
|---|---|
| private ClassDelegate() | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator codeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |
Delegate for Collection types.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values valueCodeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| protected CodeBlock | |
| protected final CodeBlock | generateCollectionOf(ValueCodeGenerator valueCodeGenerator, Collection<?> collection, Class<?> collectionType)
|
| collectionType | back to summary |
|---|---|
| private final Class<?> collectionType | |
| emptyResult | back to summary |
|---|---|
| private final CodeBlock emptyResult | |
| CollectionDelegate | back to summary |
|---|---|
| protected CollectionDelegate(Class<?> collectionType, CodeBlock emptyResult) | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator valueCodeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |
| generateCollectionCode | back to summary |
|---|---|
| protected CodeBlock generateCollectionCode(ValueCodeGenerator valueCodeGenerator, T collection) | |
| generateCollectionOf | back to summary |
|---|---|
| protected final CodeBlock generateCollectionOf(ValueCodeGenerator valueCodeGenerator, Collection<?> collection, Class<?> collectionType) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values codeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| EnumDelegate | back to summary |
|---|---|
| private EnumDelegate() | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator codeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| ListDelegate | back to summary |
|---|---|
| pack-priv ListDelegate() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CodeBlock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values valueCodeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| protected CodeBlock | Returns: the code that represents the specified map ornull if
the specified map is not supported.the code generator to use for embedded values valueCodeGenerator, Map<?, ?> the value to generate map)Generate the code for a non-empty |
| private <K, V> Map |
| EMPTY_RESULT | back to summary |
|---|---|
| private static final CodeBlock EMPTY_RESULT | |
| MapDelegate | back to summary |
|---|---|
| public MapDelegate() | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator valueCodeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |
| generateMapCode | back to summary |
|---|---|
| protected CodeBlock generateMapCode(ValueCodeGenerator valueCodeGenerator, Map<?, ?> map) Generate the code for a non-empty
| |
| orderForCodeConsistency | back to summary |
|---|---|
| private <K, V> Map | |
Delegate for primitive types.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values codeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| CHAR_ESCAPES | back to summary |
|---|---|
| private static final Map<Character, String> CHAR_ESCAPES | |
| PrimitiveDelegate | back to summary |
|---|---|
| private PrimitiveDelegate() | |
| escape | back to summary |
|---|---|
| private String escape(char ch) | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator codeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |
Delegate for ResolvableType types.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values codeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| private static CodeBlock | |
| private static CodeBlock |
| ResolvableTypeDelegate | back to summary |
|---|---|
| private ResolvableTypeDelegate() | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator codeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |
| generateCode | back to summary |
|---|---|
| private static CodeBlock generateCode(ResolvableType resolvableType, boolean allowClassResult) | |
| generateCodeWithGenerics | back to summary |
|---|---|
| private static CodeBlock generateCodeWithGenerics(ResolvableType target, Class<?> type) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected CodeBlock | |
| private Set |
| SetDelegate | back to summary |
|---|---|
| pack-priv SetDelegate() | |
| generateCollectionCode | back to summary |
|---|---|
protected CodeBlock generateCollectionCode(ValueCodeGenerator valueCodeGenerator, Set<?> collection)
| |
| orderForCodeConsistency | back to summary |
|---|---|
| private Set | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateCode(ValueCodeGenerator
the code generator to use for embedded values codeGenerator, Object the value to generate value)Implements org. Generate the code for the specified non-null |
| StringDelegate | back to summary |
|---|---|
| private StringDelegate() | |
| generateCode | back to summary |
|---|---|
| public CodeBlock generateCode(ValueCodeGenerator codeGenerator, Object value) Implements org. Doc from org. Generate the code for the specified non-null
| |