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

io.toolisticon.aptk.tools.command.impl.GetAttributesCommandWithInheritance Maven / Gradle / Ivy

package io.toolisticon.aptk.tools.command.impl;

import io.toolisticon.aptk.tools.BeanUtils;
import io.toolisticon.aptk.tools.BeanUtils.AttributeResult;
import io.toolisticon.aptk.tools.command.CommandWithReturnType;

import javax.lang.model.element.TypeElement;

/**
 * Get all attributes of  passed TypeElement and it's parents.
 * attribute = field with adequate getter and setter method
 */
public class GetAttributesCommandWithInheritance implements CommandWithReturnType {

    public final static GetAttributesCommandWithInheritance INSTANCE = new GetAttributesCommandWithInheritance();

    @Override
    public AttributeResult[] execute(TypeElement element) {

        return BeanUtils.getAttributesWithInheritance(element);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy