| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | BeanBuilder.
Helper bean used to encapsulate most details of type handling |
| Modifier and Type | Field and Description |
|---|---|
| protected Map | |
| protected final JavaType | _type
Abstract class or interface that the bean is created to extend or implement. |
| protected final AnnotatedClass | |
| protected final TypeFactory | |
| protected LinkedHashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| public byte[] | |
| protected String | |
| protected String | |
| protected TypeResolutionContext | |
| protected String | |
| public static BeanBuilder | |
| protected void | |
| protected void | createGetter(ClassWriter cw, String internalClassName, POJOProperty prop, BeanBuilder.
|
| protected void | createSetter(ClassWriter cw, String internalClassName, POJOProperty prop, BeanBuilder.
|
| protected void | createUnimplementedMethod(ClassWriter cw, String internalClassName, Method method)
Builder for methods that just throw an exception, basically "unsupported operation" implementation. |
| protected String | |
| protected POJOProperty | |
| protected static void | generateDefaultConstructor(ClassWriter cw, String superName)
Note only static because it is needed from TypeDetector |
| protected String | |
| protected String | |
| protected boolean | hasConcreteOverride(Method m0, JavaType implementedType)
Helper method used to detect if an abstract method found in a base class may actually be implemented in a (more) concrete sub-class. |
| public BeanBuilder | implement(boolean
If true, and an unrecognized (non-getter, non-setter)
method is encountered, will throw failOnUnrecognized)IllegalArgumentException; if false,
will implement bogus method that will throw UnsupportedOperationException
if called.
|
| protected static final boolean |
| _beanProperties | back to summary |
|---|---|
| protected Map<String, POJOProperty> _beanProperties | |
| _type | back to summary |
|---|---|
| protected final JavaType _type Abstract class or interface that the bean is created to extend or implement. | |
| _typeDefinition | back to summary |
|---|---|
| protected final AnnotatedClass _typeDefinition | |
| _typeFactory | back to summary |
|---|---|
| protected final TypeFactory _typeFactory | |
| _unsupportedMethods | back to summary |
|---|---|
| protected LinkedHashMap<String, Method> _unsupportedMethods | |
| BeanBuilder | back to summary |
|---|---|
| public BeanBuilder(JavaType type, AnnotatedClass ac, TypeFactory tf) | |
| addGetter | back to summary |
|---|---|
| protected void addGetter(TypeResolutionContext ctxt, Method m) | |
| addSetter | back to summary |
|---|---|
| protected void addSetter(TypeResolutionContext ctxt, Method m) | |
| build | back to summary |
|---|---|
| public byte[] build(String className) Method that generates byte code for class that implements abstract types requested so far.
| |
| buildGetterName | back to summary |
|---|---|
| protected String buildGetterName(String fieldName) | |
| buildSetterName | back to summary |
|---|---|
| protected String buildSetterName(String fieldName) | |
| buildTypeContext | back to summary |
|---|---|
| protected TypeResolutionContext buildTypeContext(JavaType ctxtType) | |
| cap | back to summary |
|---|---|
| protected String cap(String prefix, String name) | |
| construct | back to summary |
|---|---|
| public static BeanBuilder construct(MapperConfig<?> config, JavaType type, AnnotatedClass ac) | |
| createField | back to summary |
|---|---|
| protected void createField(ClassWriter cw, POJOProperty prop, BeanBuilder. | |
| createGetter | back to summary |
|---|---|
| protected void createGetter(ClassWriter cw, String internalClassName, POJOProperty prop, BeanBuilder. | |
| createSetter | back to summary |
|---|---|
| protected void createSetter(ClassWriter cw, String internalClassName, POJOProperty prop, BeanBuilder. | |
| createUnimplementedMethod | back to summary |
|---|---|
| protected void createUnimplementedMethod(ClassWriter cw, String internalClassName, Method method) Builder for methods that just throw an exception, basically "unsupported operation" implementation. | |
| decap | back to summary |
|---|---|
| protected String decap(String name) | |
| findProperty | back to summary |
|---|---|
| protected POJOProperty findProperty(TypeResolutionContext ctxt, String propName) | |
| generateDefaultConstructor | back to summary |
|---|---|
| protected static void generateDefaultConstructor(ClassWriter cw, String superName) Note only static because it is needed from TypeDetector | |
| getInternalClassName | back to summary |
|---|---|
| protected String getInternalClassName(String className) | |
| getPropertyName | back to summary |
|---|---|
| protected String getPropertyName(String methodName) | |
| hasConcreteOverride | back to summary |
|---|---|
| protected boolean hasConcreteOverride(Method m0, JavaType implementedType) Helper method used to detect if an abstract method found in a base class may actually be implemented in a (more) concrete sub-class.
| |
| implement | back to summary |
|---|---|
public BeanBuilder implement(boolean failOnUnrecognized)
| |
| returnsBoolean | back to summary |
|---|---|
| protected static final boolean returnsBoolean(Method m) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public int | |
| public Class | |
| public int | |
| public boolean | |
| public static BeanBuilder. | |
| public String |
| _asmType | back to summary |
|---|---|
| private final Type _asmType | |
| _jacksonType | back to summary |
|---|---|
| private JavaType _jacksonType | |
| TypeDescription | back to summary |
|---|---|
| public TypeDescription(JavaType type) | |
| erasedSignature | back to summary |
|---|---|
| public String erasedSignature() | |
| genericSignature | back to summary |
|---|---|
| public String genericSignature() | |
| getLoadOpcode | back to summary |
|---|---|
| public int getLoadOpcode() | |
| getRawClass | back to summary |
|---|---|
| public Class | |
| getReturnOpcode | back to summary |
|---|---|
| public int getReturnOpcode() | |
| hasGenerics | back to summary |
|---|---|
public boolean hasGenerics()
| |
| moreSpecificType | back to summary |
|---|---|
| public static BeanBuilder. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |