Examples of AnnotationNode


Examples of org.objectweb.asm.tree.AnnotationNode

   * Build {@link ComponentBean}.
   */
  private void applyComponent(final ComponentBean component,
      final Class<?> type, final ClassNode classNode) throws Exception {

    final AnnotationNode annoNode = UtilAsm.componentAnno(classNode);

    if (annoNode == null) {
      return;
    }

View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

      return;
    }

    for (final FieldNode fieldNode : fieldList) {

      final AnnotationNode annoNode = UtilAsm.propertyAnno(fieldNode);

      if (annoNode == null) {
        continue;
      }
View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

      return;
    }

    for (final MethodNode methodNode : methodList) {

      final AnnotationNode annoNode = UtilAsm.referenceAnno(methodNode);

      if (annoNode == null) {
        continue;
      }
View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

  public static boolean hasComponentAnno(final Class<?> klaz)
      throws Exception {

    final ClassNode node = classNode(klaz);

    final AnnotationNode anno = componentAnno(node);

    return anno != null;

  }
View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

    ClassNode node = getNode();

    if (node.visibleAnnotations != null) {
      for (int i = 0, j = node.visibleAnnotations.size(); i < j; i++) {
        AnnotationNode ann = (AnnotationNode)node.visibleAnnotations.get(i);
        String descriptor = "L" + name.replace(".", "/") + ";";

        if (ann.desc.equals(descriptor)) {
          return ann;
        }
View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

   * Build {@link ComponentBean}.
   */
  private void applyComponent(final ComponentBean component,
      final Class<?> type, final ClassNode classNode) throws Exception {

    final AnnotationNode annoNode = UtilAsm.componentAnno(classNode);

    if (annoNode == null) {
      return;
    }

View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

      return;
    }

    for (final FieldNode fieldNode : fieldList) {

      final AnnotationNode annoNode = UtilAsm.propertyAnno(fieldNode);

      if (annoNode == null) {
        continue;
      }
View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

      return;
    }

    for (final MethodNode methodNode : methodList) {

      final AnnotationNode annoNode = UtilAsm.referenceAnno(methodNode);

      if (annoNode == null) {
        continue;
      }
View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

  public static boolean hasComponentAnno(final Class<?> klaz)
      throws Exception {

    final ClassNode node = classNode(klaz);

    final AnnotationNode anno = componentAnno(node);

    return anno != null;

  }
View Full Code Here

Examples of org.objectweb.asm.tree.AnnotationNode

            MethodFlow.acceptAnnotation(av, null, mf.annotationDefault);
            av.visitEnd();
        }
        n = mf.visibleAnnotations == null ? 0 : mf.visibleAnnotations.size();
        for (i = 0; i < n; ++i) {
            AnnotationNode an = (AnnotationNode) mf.visibleAnnotations.get(i);
            an.accept(mv.visitAnnotation(an.desc, true));
        }
        n = mf.invisibleAnnotations == null ? 0
                : mf.invisibleAnnotations.size();
        for (i = 0; i < n; ++i) {
            AnnotationNode an = (AnnotationNode) mf.invisibleAnnotations.get(i);
            an.accept(mv.visitAnnotation(an.desc, false));
        }
        n = mf.visibleParameterAnnotations == null ? 0
                : mf.visibleParameterAnnotations.length;
        for (i = 0; i < n; ++i) {
            List<?> l = mf.visibleParameterAnnotations[i];
            if (l == null) {
                continue;
            }
            for (j = 0; j < l.size(); ++j) {
                AnnotationNode an = (AnnotationNode) l.get(j);
                an.accept(mv.visitParameterAnnotation(i, an.desc, true));
            }
        }
        n = mf.invisibleParameterAnnotations == null ? 0
                : mf.invisibleParameterAnnotations.length;
        for (i = 0; i < n; ++i) {
            List<?> l = mf.invisibleParameterAnnotations[i];
            if (l == null) {
                continue;
            }
            for (j = 0; j < l.size(); ++j) {
                AnnotationNode an = (AnnotationNode) l.get(j);
                an.accept(mv.visitParameterAnnotation(i, an.desc, false));
            }
        }
        n = mf.attrs == null ? 0 : mf.attrs.size();
        for (i = 0; i < n; ++i) {
            mv.visitAttribute((Attribute) mf.attrs.get(i));
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.