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

com.moon.mapping.processing.BaseMethod Maven / Gradle / Ivy

package com.moon.mapping.processing;


/**
 * @author benshaoye
 */
abstract class BaseMethod implements TypeGetter {

    /**
     * getter 或 setter 方法名
     */
    private final String methodName;
    /**
     * getter 方法声明返回类型(可能是泛型)
     */
    private final String declareType;
    /**
     * getter 方法实际返回类型(实际类型)
     */
    private final String actualType;
    /**
     * 是否是主动声明的(,)
     * 

* 类的方法都是主动声明的 *

* 接口的方法有些 getter、setter 是根据上下文自动生成的 */ private final boolean declaration; public BaseMethod(String methodName, String declareType, String actualType, boolean declaration) { this.methodName = methodName; this.declareType = declareType; this.actualType = actualType; this.declaration = declaration; } public String getMethodName() { return methodName; } @Override public String getDeclareType() { return declareType; } @Override public String getActualType() { return actualType; } public boolean isDeclaration() { return declaration; } public boolean isGenerated() { return !isDeclaration(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy