vite.rxbus.compiler.MethodBinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxbus-compiler Show documentation
Show all versions of rxbus-compiler Show documentation
RxBus base on RxJava2 & RxAndroid to achieve event bus.
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 +
'}';
}
}