Package com.alibaba.citrus.generictype.introspect

Examples of com.alibaba.citrus.generictype.introspect.PropertyInfo


        String name = method.getName();
        Class<?>[] paramTypes = method.getParameterTypes();
        Class<?> returnType = method.getReturnType();
        int paramCount = paramTypes.length;

        PropertyInfo prop = null;

        switch (paramCount) {
            case 1:
                if (paramTypes[0] == String.class && name.startsWith(GET_PREFIX)) {
                    if (returnType != void.class) {
View Full Code Here


        if (other == null || !other.getClass().equals(getClass())) {
            return false;
        }

        PropertyInfo o = (PropertyInfo) other;
        EqualsBuilder equals = new EqualsBuilder();

        equals.append(getName(), o.getName());
        equals.append(getDeclaringType(), o.getDeclaringType());
        equals.append(getType(), o.getType());
        equals.append(getReadMethod(), o.getReadMethod());
        equals.append(getWriteMethod(), o.getWriteMethod());

        return equals.isEquals();
    }
View Full Code Here

        String name = method.getName();
        Class<?>[] paramTypes = method.getParameterTypes();
        Class<?> returnType = method.getReturnType();
        int paramCount = paramTypes.length;

        PropertyInfo prop = null;

        switch (paramCount) {
            case 0:
                if (name.startsWith(GET_PREFIX)) {
                    if (returnType != void.class) {
View Full Code Here

*
* @author Michael Zhou
*/
public abstract class SinglePropertyFinder extends AbstractTypeVisitor implements PropertiesFinder {
    public final Map<String, List<PropertyInfo>> getProperties() {
        PropertyInfo prop = createPropertyInfo(getType());

        if (prop != null) {
            return singletonMap(prop.getName(), singletonList(prop));
        } else {
            return emptyMap();
        }
    }
View Full Code Here

        String name = method.getName();
        Class<?>[] paramTypes = method.getParameterTypes();
        Class<?> returnType = method.getReturnType();
        int paramCount = paramTypes.length;

        PropertyInfo prop = null;

        switch (paramCount) {
            case 1:
                if (paramTypes[0] == int.class && name.startsWith(GET_PREFIX)) {
                    if (returnType != void.class) {
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.generictype.introspect.PropertyInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.