Examples of AnnotationVisitor


Examples of org.ow2.easybeans.asm.AnnotationVisitor

     * @param methodVisitor the given visitor on which annotation are replayed.
     */
    @Override
    public void replay(final MethodVisitor methodVisitor) {
        // Build a new annotation visitor for the given method
        AnnotationVisitor annotationVisitor = methodVisitor.visitParameterAnnotation(this.index, getName(), getVisible());
        getLogger().debug("AnnotationVisitor annotationVisitor = methodVisitor.visitParameterAnnotation({0}, {1}, {2});",
                Integer.valueOf(this.index), getName(), Boolean.valueOf(getVisible()));

        // Replay
        replayInner(annotationVisitor);

        // End of visit
        annotationVisitor.visitEnd();
        getLogger().debug("annotationVisitor.visitEnd();");
    }

Examples of org.ow2.easybeans.asm.AnnotationVisitor

     * Replay the value stored on the given method visitor.
     * @param methodVisitor the given visitor on which annotation are replayed.
     */
    public void replay(final MethodVisitor methodVisitor) {
        // Build a new annotation visitor for the given method
        AnnotationVisitor annotationVisitor = methodVisitor.visitAnnotation(this.name, this.visible);
        this.logger.debug("AnnotationVisitor annotationVisitor = methodVisitor.visitAnnotation({0}, {1});", this.name,
                Boolean.valueOf(this.visible));

        // Replay
        replayInner(annotationVisitor);

        // End of visit
        annotationVisitor.visitEnd();
        this.logger.debug("annotationVisitor.visitEnd();");
    }

Examples of org.ow2.easybeans.asm.AnnotationVisitor

     * Replay the value stored on the given annotation visitor.
     * @param annotationVisitor the given visitor on which annotation are replayed.
     */
    public void replay(final AnnotationVisitor annotationVisitor) {
        // Build a new inner annotation visitor
        AnnotationVisitor av = annotationVisitor.visitAnnotation(this.name, this.desc);
        this.logger.debug("AnnotationVisitor annotationVisitor = methodVisitor.visitAnnotation({0}, {1});", this.name, this.desc);

        // Replay
        replayInner(av);

        // End of visit
        av.visitEnd();
        this.logger.debug("annotationVisitor.visitEnd()");
    }

Examples of org.ow2.easybeans.asm.AnnotationVisitor

     * @param annotationVisitor the given visitor on which annotation are replayed.
     */
    @Override
    public void replay(final AnnotationVisitor annotationVisitor) {
        // Build a new array annotation visitor
        AnnotationVisitor av = annotationVisitor.visitArray(getName());
        getLogger().debug("AnnotationVisitor av = methodVisitor.visitArray({0});", getName());

        // Replay
        replayInner(av);

        // End of visit
        av.visitEnd();
        getLogger().debug("av.visitEnd();");
    }

Examples of org.ow2.easybeans.asm.AnnotationVisitor

     * All EasyBeans generated methods should add some annotations.
     * @param methodVisitor the given method visitor
     */
    public static void addAnnotationsOnGeneratedMethod(final MethodVisitor methodVisitor) {
        // This method shouldn't be included as a JAX-WS WebMethod.
        AnnotationVisitor annotationVisitor = methodVisitor.visitAnnotation("Ljavax/jws/WebMethod;", true);
        annotationVisitor.visit("exclude", Boolean.TRUE);
        annotationVisitor.visitEnd();
    }

Examples of org.rsbot.loader.asm.AnnotationVisitor

        end,
        index);
  }

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

Examples of org.springframework.asm.AnnotationVisitor

  public AnnotationVisitor visitAnnotation(String name, String desc) {
    return new EmptyVisitor();
  }

  public AnnotationVisitor visitArray(final String attrName) {
    return new AnnotationVisitor() {
      public void visit(String name, Object value) {
        Object newValue = value;
        Object existingValue = localAttributes.get(attrName);
        if (existingValue != null) {
          newValue = ObjectUtils.addObjectToArray((Object[]) existingValue, newValue);

Examples of org.testng.eclipse.launch.components.AnnotationVisitor

* @author cbeust
*/
public class TypeParser {
 
  public static ITestContent parseType(IType type) {
      BaseVisitor result = new AnnotationVisitor();
      ASTParser parser = ASTParser.newParser(AST.JLS3);
      parser.setKind(ASTParser.K_COMPILATION_UNIT);
      parser.setResolveBindings(true);
      parser.setSource(type.getCompilationUnit());
      parser.setProject(type.getJavaProject());

Examples of scala.tools.asm.AnnotationVisitor

    @Override
    public AnnotationVisitor visitAnnotation(final String desc,
            final boolean visible) {
        Printer p = this.p.visitFieldAnnotation(desc, visible);
        AnnotationVisitor av = fv == null ? null : fv.visitAnnotation(desc,
                visible);
        return new TraceAnnotationVisitor(av, p);
    }
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.