Examples of AnnotationInfo

  • org.apache.myfaces.orchestra.annotation.AnnotationInfo
    Holds information extracted out of a single bean using its annotations.
  • org.codehaus.aspectwerkz.annotation.AnnotationInfo
    Holds the annotation proxy instance and the name of the annotation. @author Jonas Bon�r
  • org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo
    Holds info to create a TemporaryAnnotation. @since 1.0
  • org.glassfish.apf.AnnotationInfo
    Instances encapsulate all information necessary for an AnnotationHandler to process an annotation. In particular, instances of this class provide access to :

  • the Annotation instance
  • the ProcessingContext of the tool
  • the AnnotatedElement which is a reference to the annotation element (Type, Method...).

    @see java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement @author Jerome Dochez
  • org.jboss.reflect.spi.AnnotationInfo
    Annotation Info @author Bill Burke @author Adrian Brock
  • org.restlet.engine.resource.AnnotationInfo
    Descriptor for method annotations. @author Jerome Louvel

  • Examples of cn.wensiqun.info.AnnotationInfo

                }
            }
        }

      public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        AnnotationInfo annotationInfo = new AnnotationInfo(desc);
        if(grepClient.getAnnotationCriterion().contains(annotationInfo.getName())){
              info.getAnnotations().add(annotationInfo);
              List<ClassInfo> infos = classGrep.getAnnotatedClassMap().get(annotationInfo.getName());
              if (infos == null) {
                  infos = new ArrayList<ClassInfo>();
                  classGrep.getAnnotatedClassMap().put(annotationInfo.getName(), infos);
              }
              infos.add(info);
              info.setCompliance(true);
              return new AnnotationDefVisitor(grepClient, annotationInfo);
        }else{
    View Full Code Here

    Examples of cn.wensiqun.info.AnnotationInfo

        this.info = info;
        this.fieldGrep = grepClient.getFieldGrep();
      }

      public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        AnnotationInfo annotationInfo = new AnnotationInfo(desc);
        if(grepClient.getAnnotationCriterion().contains(annotationInfo.getName())){
              info.getAnnotations().add(annotationInfo);
              List<FieldInfo> infos = fieldGrep.getAnnotatedFieldMap().get(annotationInfo.getName());
              if (infos == null) {
                  infos = new ArrayList<FieldInfo>();
                  fieldGrep.getAnnotatedFieldMap().put(annotationInfo.getName(), infos);
              }
              infos.add(info);
              return new AnnotationDefVisitor(grepClient, annotationInfo);
        }else{
          return new EmptyVisitor();
    View Full Code Here

    Examples of cn.wensiqun.info.AnnotationInfo

      public void visitEnum(String name, String desc, String value) {
      }

      public AnnotationVisitor visitAnnotation(String name, String desc) {
        AnnotationInfo annotationInfo = new AnnotationInfo(desc);
        if(grepClient.getAnnotationCriterion().contains(annotationInfo.getName())){
              info.getAnnotations().add(annotationInfo);
              List<AnnotationInfo> infos = annotationGrep.getAnnotatedAnnotationMap().get(annotationInfo.getName());
              if (infos == null) {
                  infos = new ArrayList<AnnotationInfo>();
                  annotationGrep.getAnnotatedAnnotationMap().put(annotationInfo.getName(), infos);
              }
              infos.add(info);
              return new AnnotationDefVisitor(grepClient, annotationInfo);
        }else{
          return new EmptyVisitor();
    View Full Code Here

    Examples of cn.wensiqun.info.AnnotationInfo

        this.info = info;
        this.methodGrep = grepClient.getMethodGrep();
      }

      public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        AnnotationInfo annotationInfo = new AnnotationInfo(desc);
        if(grepClient.getAnnotationCriterion().contains(annotationInfo.getName())){
              info.getAnnotations().add(annotationInfo);
              List<MethodInfo> infos = methodGrep.getAnnotatedMethodInfoMap().get(annotationInfo.getName());
              if (infos == null) {
                  infos = new ArrayList<MethodInfo>();
                  methodGrep.getAnnotatedMethodInfoMap().put(annotationInfo.getName(), infos);
              }
              infos.add(info);
              return new AnnotationDefVisitor(grepClient, annotationInfo);
        }else{
          return new EmptyVisitor();
    View Full Code Here

    Examples of cn.wensiqun.info.AnnotationInfo

        }
      }

      public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) {
            List<AnnotationInfo> annotationInfos = info.getParameterAnnotations(parameter);
            AnnotationInfo annotationInfo = new AnnotationInfo(desc);
            annotationInfos.add(annotationInfo);
            return new AnnotationDefVisitor(grepClient, annotationInfo);
      }
    View Full Code Here

    Examples of com.getperka.flatpack.codexes.AnnotationInfo

        JsonElement elt = packer.pack(entity);
        elt.getAsJsonObject().get("value").getAsJsonObject().addProperty("@", "UnknownType");

        Annotation a = unpacker.<Annotation> unpack(Annotation.class, elt, null).getValue();
        assertTrue(a instanceof UnknownAnnotation);
        AnnotationInfo info = (AnnotationInfo) a;
        assertEquals("UnknownType", info.getAnnotationTypeName());
        assertEquals(5, ((Number) info.getAnnotationValues().get("i")).intValue());
      }
    View Full Code Here

    Examples of com.spaceprogram.simplejpa.AnnotationInfo

            init(em);
        }

        private Boolean appendCondition(Class tClass, StringBuilder sb, String field, String comparator, String param) {
            comparator = comparator.toLowerCase();
            AnnotationInfo ai = em.getAnnotationManager().getAnnotationInfo(tClass);

            String fieldSplit[] = field.split("\\.");
            if (fieldSplit.length == 1) {
                field = fieldSplit[0];
    // System.out.println("split: " + field + " param=" + param);
                if (field.equals(param)) {
                    return false;
                }
            } else if (fieldSplit.length == 2) {
                field = fieldSplit[1];
            } else if (fieldSplit.length == 3) {
                // NOTE: ONLY SUPPORTING SECOND LEVEL OF GRAPH RIGHT NOW
                // then we have to reach down the graph here. eg: myOb.ob2.name or myOb.ob2.id
                // if filtering by id, then don't need to query for second object, just add a filter on the id field
                String refObjectField = fieldSplit[1];
                field = fieldSplit[2];
    // System.out.println("field=" + field);
                Method getterForReference = ai.getGetter(refObjectField);
                Class refType = getterForReference.getReturnType();
                AnnotationInfo refAi = em.getAnnotationManager().getAnnotationInfo(refType);
                Method getterForField = refAi.getGetter(field);
    // System.out.println("getter=" + getterForField);
                String paramValue = getParamValueAsStringForAmazonQuery(param, getterForField);
                logger.finest("paramValue=" + paramValue);
                Method refIdMethod = refAi.getIdMethod();
                if (NamingHelper.attributeName(refIdMethod).equals(field)) {
                    logger.finer("Querying using id field, no second query required.");
                    appendFilter(sb, NamingHelper.foreignKey(refObjectField), comparator, paramValue);
                } else {
                    // no id method, so query for other object(s) first, then apply the returned value to the original query.
    View Full Code Here

    Examples of com.sun.enterprise.deployment.annotation.AnnotationInfo

            // process the method parameters...
            for (Annotation[] parameterAnnotations : parametersAnnotations) {
                logStart(ctx.getHandler(), ElementType.PARAMETER, null);
                if (parameterAnnotations!=null) {
                    for (Annotation annotation : parameterAnnotations) {
                        AnnotationInfo info = new AnnotationInfo(ctx, null, annotation, ElementType.PARAMETER);
                        process(ctx, info, result);
                        dumpProcessingResult(result);
                    }
                }
                logEnd(ctx.getHandler(), ElementType.PARAMETER, null);
    View Full Code Here

    Examples of com.sun.enterprise.deployment.annotation.AnnotationInfo

       
            HandlerProcessingResultImpl result= new HandlerProcessingResultImpl();
           
            for (Annotation annotation : element.getAnnotations()) {
                // initialize the result...
                AnnotationInfo subElement = new AnnotationInfo(ctx, element, annotation, getTopElementType());
                if (!result.processedAnnotations().containsKey(annotation.annotationType())) {
                    process(ctx, subElement, result);
                } else {
                    if (AnnotationUtils.shouldLog("annotation")) {
                        logger.finer("Annotation " + annotation.annotationType() + " already processed");
    View Full Code Here

    Examples of com.sun.enterprise.deployment.annotation.AnnotationInfo

                            Annotation depAnnotation = ae.getAnnotation(annotationType);
                            if (depAnnotation!=null) {                       
                                ResultType resultType = result.processedAnnotations().get(annotationType);
                                if (resultType==null || resultType==ResultType.UNPROCESSED){
                                    // annotation is present, process it.
                                    AnnotationInfo info = new AnnotationInfo(ctx, ae, depAnnotation, getTopElementType());
                                    process(ctx, info, result);
                                }
                            }
                        }
                    }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.