Package ar.edu.unlp.yaqc4j.annotations

Examples of ar.edu.unlp.yaqc4j.annotations.Classify


    clasifiers = new ClassifyResults[this.method.getMethod().getParameterAnnotations().length];
    int index = 0;
    for (Annotation[] annotations:this.method.getMethod().getParameterAnnotations()){
      for (Annotation annotation:annotations){
        if (annotation.annotationType().equals(Classify.class)){
          Classify collectAnnotation = (Classify) annotation;
          Classifier[] classifiers = new Classifier[collectAnnotation.classifiers().length];
          int i = 0;
          for (Class<? extends Classifier> classifierClass: collectAnnotation.classifiers()){
            try {
              classifiers[i] = classifierClass.newInstance();
            } catch (Exception e) {
              throw new RuntimeException(e);
            }
            i++;
          }
          clasifiers[index] = new ClassifyResults(collectAnnotation.name(), classifiers);
        }
      }
      index++;
    }
  }
View Full Code Here

TOP

Related Classes of ar.edu.unlp.yaqc4j.annotations.Classify

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.