Package jodd.asm5

Examples of jodd.asm5.Context


  /**
   * Copies all destination type annotations to the target.
   */
  @Override
  public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    AnnotationVisitor destAnn = wd.dest.visitAnnotation(desc, visible); // [A3]
    return new AnnotationVisitorAdapter(destAnn);
  }
View Full Code Here


  /**
   * Copies target method annotations.
   */
  @Override
  public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    AnnotationVisitor destAnn = methodVisitor.visitAnnotation(desc, visible); // [A4]
    return new AnnotationVisitorAdapter(destAnn);
  }
View Full Code Here

    return new AnnotationVisitorAdapter(destAnn);
  }

  @Override
  public AnnotationVisitor visitAnnotationDefault() {
    AnnotationVisitor destAnn = methodVisitor.visitAnnotationDefault();
    return new AnnotationVisitorAdapter(destAnn);
  }
View Full Code Here

    return new AnnotationVisitorAdapter(destAnn);
  }

  @Override
  public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) {
    AnnotationVisitor destAnn = methodVisitor.visitParameterAnnotation(parameter, desc, visible);
    return new AnnotationVisitorAdapter(destAnn);
  }
View Full Code Here

  /**
   * Copies target method annotations.
   */
  @Override
  public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    AnnotationVisitor destAnn = methodVisitor.visitAnnotation(desc, visible); // [A4]
    return new AnnotationVisitorAdapter(destAnn);
  }
View Full Code Here

    return new AnnotationVisitorAdapter(destAnn);
  }

  @Override
  public AnnotationVisitor visitAnnotationDefault() {
    AnnotationVisitor destAnn = methodVisitor.visitAnnotationDefault();
    return new AnnotationVisitorAdapter(destAnn);
  }
View Full Code Here

    return new AnnotationVisitorAdapter(destAnn);
  }

  @Override
  public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) {
    AnnotationVisitor destAnn = methodVisitor.visitParameterAnnotation(parameter, desc, visible);
    return new AnnotationVisitorAdapter(destAnn);
  }
View Full Code Here

  /**
   * Copies all destination type annotations to the target.
   */
  @Override
  public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    AnnotationVisitor destAnn = wd.dest.visitAnnotation(desc, visible); // [A3]
    return new AnnotationVisitorAdapter(destAnn);
  }
View Full Code Here

  protected void process() {
    if (targetInputStream == null) {
      throw new ProxettaException("Target missing");
    }
    // create class reader
    ClassReader classReader;
    try {
      classReader = new ClassReader(targetInputStream);
    } catch (IOException ioex) {
      throw new ProxettaException("Error reading class input stream", ioex);
    }

    // reads information
    TargetClassInfoReader targetClassInfoReader = new TargetClassInfoReader();
    classReader.accept(targetClassInfoReader, 0);

    this.destClassWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);

    // create proxy
    if (log.isDebugEnabled()) {
      log.debug("processing: " + classReader.getClassName());
    }
    WorkData wd = process(classReader, targetClassInfoReader);

    // store important data
    proxyApplied = wd.proxyApplied;
View Full Code Here

   */
  private ClassReader createAdviceClassReader(Class<? extends ProxyAdvice> advice) {
    InputStream inputStream = null;
    try {
      inputStream = ClassLoaderUtil.getClassAsStream(advice);
      return new ClassReader(inputStream);
    } catch (IOException ioex) {
      throw new ProxettaException(ioex);
    } finally {
      StreamUtil.close(inputStream);
    }
View Full Code Here

TOP

Related Classes of jodd.asm5.Context

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.