com.fasterxml.jackson.module.afterburner.ser.BeanPropertyAccessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module-afterburner Show documentation
Show all versions of jackson-module-afterburner Show documentation
Jackson (https://github.com/FasterXML/jackson) extension module
used to enhance performance using bytecode generation to replace use of Reflection for
field access and method calls
package com.fasterxml.jackson.module.afterburner.ser;
/**
* Abstract class that defines interface for implementations
* that can be used for proxy-like access without using
* Reflection.
*/
public abstract class BeanPropertyAccessor
{
/** @since 2.5 */
public boolean booleanGetter(Object bean, int property) {
throw new UnsupportedOperationException("No booleanGetters defined");
}
public int intGetter(Object bean, int property) {
throw new UnsupportedOperationException("No intGetters defined");
}
public long longGetter(Object bean, int property) {
throw new UnsupportedOperationException("No longGetters defined");
}
public String stringGetter(Object bean, int property) {
throw new UnsupportedOperationException("No stringGetters defined");
}
public Object objectGetter(Object bean, int property) {
throw new UnsupportedOperationException("No objectGetters defined");
}
/** @since 2.5 */
public boolean booleanField(Object bean, int property) {
throw new UnsupportedOperationException("No booleanFields defined");
}
public int intField(Object bean, int property) {
throw new UnsupportedOperationException("No intFields defined");
}
public long longField(Object bean, int property) {
throw new UnsupportedOperationException("No longFields defined");
}
public String stringField(Object bean, int property) {
throw new UnsupportedOperationException("No stringFields defined");
}
public Object objectField(Object bean, int property) {
throw new UnsupportedOperationException("No objectFields defined");
}
}