All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.leeonky.util.DataPropertyAccessor Maven / Gradle / Ivy

The newest version!
package com.github.leeonky.util;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

class DataPropertyAccessor extends AbstractPropertyAccessor {
    private final String name;
    private final BeanClass type;

    DataPropertyAccessor(BeanClass beanClass, String name, BeanClass type) {
        super(beanClass);
        this.name = name;
        this.type = type;
    }

    @Override
    protected Type provideGenericType() {
        return type.getType();
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public  A getAnnotation(Class annotationClass) {
        return null;
    }

    @Override
    public BeanClass getType() {
        return type;
    }

    @Override
    public boolean isBeanProperty() {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy