コード例 #1
0
 static {
   Set<String> set = new HashSet<String>();
   for (UserOperatorType type : UserOperatorType.values()) {
     set.add("com.asakusafw.vocabulary.operator." + type.name());
   }
   ANNOTATION_SET = set;
 }
コード例 #2
0
 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;
 }