static { Set<String> set = new HashSet<String>(); for (UserOperatorType type : UserOperatorType.values()) { set.add("com.asakusafw.vocabulary.operator." + type.name()); } ANNOTATION_SET = set; }
public UserOperatorType getOperatorType() { if (operatorType == null) { IType type = method.getDeclaringType(); IAnnotation ann = getAnnotation(type, method, ANNOTATION_SET); if (ann != null) { operatorType = UserOperatorType.valueOf(ann.getElementName()); } } return operatorType; }