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

vite.rxbus.compiler.MethodBinder Maven / Gradle / Ivy

The newest version!
package vite.rxbus.compiler;

import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;

import javax.lang.model.type.TypeMirror;

import vite.rxbus.ThreadType;

/**
 * Created by trs on 17-1-5.
 */

final class MethodBinder {
    private String mMethodName;
    private Set mTags;
    private ThreadType mThreadType;
    private TypeMirror mParamType;

    public MethodBinder() {
        mTags = new LinkedHashSet<>();
    }

    public void setMethodName(String name) {
        mMethodName = name;
    }

    public String getMethodName() {
        return mMethodName;
    }

    public void setThreadType(ThreadType type) {
        mThreadType = type;
    }

    public ThreadType getThreadType() {
        return mThreadType;
    }

    public void addTag(String tag) {
        mTags.add(tag);
    }

    public Set getTags() {
        return mTags;
    }

    public void setParamType(TypeMirror typeMirror) {
        mParamType = typeMirror;
    }

    public TypeMirror getParamType() {
        return mParamType;
    }

    @Override
    public String toString() {
        return "MethodBinder{" +
                "mMethodName='" + mMethodName + '\'' +
                ", mTags=" + mTags +
                ", mThreadType=" + mThreadType +
                ", mParamType=" + mParamType +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy