Examples of AnnotationVisitor


Examples of org.enclojure.ide.asm.AnnotationVisitor

    public AnnotationVisitor visitAnnotation(
        final String desc,
        final boolean visible)
    {
        text.add("\n");
        AnnotationVisitor tav = super.visitAnnotation(desc, visible);
        if (cv != null) {
            ((TraceAnnotationVisitor) tav).av = cv.visitAnnotation(desc,
                    visible);
        }
        return tav;

Examples of org.glassfish.hk2.external.org.objectweb.asm.AnnotationVisitor

        this.remapper = remapper;
    }

    @Override
    public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        AnnotationVisitor av = fv.visitAnnotation(remapper.mapDesc(desc),
                visible);
        return av == null ? null : new RemappingAnnotationAdapter(av, remapper);
    }

Examples of org.mockito.asm.AnnotationVisitor

     */
    public void accept(final MethodVisitor mv) {
        // visits the method attributes
        int i, j, n;
        if (annotationDefault != null) {
            AnnotationVisitor av = mv.visitAnnotationDefault();
            AnnotationNode.accept(av, null, annotationDefault);
            if (av != null) {
                av.visitEnd();
            }
        }
        n = visibleAnnotations == null ? 0 : visibleAnnotations.size();
        for (i = 0; i < n; ++i) {
            AnnotationNode an = (AnnotationNode) visibleAnnotations.get(i);

Examples of org.mvel2.asm.AnnotationVisitor

                    superType,
                    intfaces );

            {
                if ( classDef.getDefinedClass() == null || classDef.getDefinedClass().getAnnotation( Trait.class ) == null ) {
                    AnnotationVisitor av0 = cw.visitAnnotation( Type.getDescriptor( Trait.class ), true);
                    List<AnnotationDefinition> annotations = classDef.getAnnotations();
                    if ( annotations != null && ! annotations.isEmpty() ) {
                        for ( Iterator<AnnotationDefinition> iter = annotations.iterator(); iter.hasNext(); ) {
                            AnnotationDefinition adef = iter.next();
                            if ( Trait.class.getName().equals( adef.getName() ) ) {
                                if ( adef.getPropertyValue( "logical" ) != null ) {
                                    av0.visit( "logical", (Boolean) adef.getPropertyValue( "logical" ) );
                                }
                                if ( adef.getPropertyValue( "impl" ) != null ) {
                                    av0.visit( "impl", Type.getType( (Class) adef.getPropertyValue( "impl" ) ) );
                                }
                                break;
                            }
                        }
                    }
                    av0.visitEnd();
                }
            }

            for ( FieldDefinition field : classDef.getFieldsDefinitions() ) {
                buildField( cw, field );

Examples of org.objectweb.asm.AnnotationVisitor

    }

    public AnnotationVisitor visitAnnotation(final String desc,
        final boolean visible) {
        if (decompilingEntireClass()) {
            AnnotationVisitor cav = classNode.visitAnnotation(desc, visible);
            AnnotationVisitor av = super.visitAnnotation(desc, visible);
            if(av instanceof CommentedAnnotationVisitor){
                CommentedAnnotationVisitor visitor = (CommentedAnnotationVisitor) av;
                visitor.setAnnotationVisitor(cav);
            }
            return av;

Examples of org.objectweb.asm.AnnotationVisitor

        }
    }

    private AnnotationVisitor getDummyAnnotationVisitor(){
        if (dummyAnnVisitor == null) {
            dummyAnnVisitor = new AnnotationVisitor() {
                public void visit(String n, Object value) {
                    /* empty */
                }
                public void visitEnum(String n, String desc, String value) {
                    /* empty */
 

Examples of org.objectweb.asm.AnnotationVisitor

    public DecompiledMethod getResult(final ClassLoader cl) {
        return new DecompiledMethod(owner, text, lineNumbers, meth, cl, modes);
    }

    public AnnotationVisitor visitAnnotationDefault() {
        AnnotationVisitor annVisitor = super.visitAnnotationDefault();
        AnnotationVisitor visitor = meth.visitAnnotationDefault();
        if (annVisitor instanceof CommentedAnnotationVisitor) {
            CommentedAnnotationVisitor av = (CommentedAnnotationVisitor) annVisitor;
            av.setAnnotationVisitor(visitor);
        }
        return annVisitor;

Examples of org.objectweb.asm.AnnotationVisitor

        }
        return annVisitor;
    }

    public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        AnnotationVisitor annVisitor = super.visitAnnotation(desc, visible);
        AnnotationVisitor visitor = meth.visitAnnotation(desc, visible);
        if (annVisitor instanceof CommentedAnnotationVisitor) {
            CommentedAnnotationVisitor av = (CommentedAnnotationVisitor) annVisitor;
            av.setAnnotationVisitor(visitor);
        }
        return annVisitor;

Examples of org.objectweb.asm.AnnotationVisitor

        return annVisitor;
    }

    public AnnotationVisitor visitParameterAnnotation(int parameter,
        String desc, boolean visible) {
        AnnotationVisitor annVisitor = super.visitParameterAnnotation(
            parameter, desc, visible);
        AnnotationVisitor visitor = meth.visitParameterAnnotation(
            parameter, desc, visible);
        if (annVisitor instanceof CommentedAnnotationVisitor) {
            CommentedAnnotationVisitor av = (CommentedAnnotationVisitor) annVisitor;
            av.setAnnotationVisitor(visitor);
        }

Examples of org.objectweb.asm.AnnotationVisitor

    cv.visitEnd();
  }

  private void addAnnotation() {
    if (!isAnnotationPresent) {
      AnnotationVisitor av = cv.visitAnnotation(annotationDesc, true);
      if (av != null) {
        av.visitEnd();
      }
      isAnnotationPresent = true;
    }
  }
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.