Example usage for org.objectweb.asm Opcodes ASM5

List of usage examples for org.objectweb.asm Opcodes ASM5

Introduction

In this page you can find the example usage for org.objectweb.asm Opcodes ASM5.

Prototype

int ASM5

To view the source code for org.objectweb.asm Opcodes ASM5.

Click Source Link

Usage

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.HandlerVisitor.java

License:Apache License

public HandlerVisitor(ComponentWorkbench workbench, Reporter reporter) {
    super(Opcodes.ASM5);
    this.workbench = workbench;
    this.reporter = reporter;
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.InstantiateVisitor.java

License:Apache License

public InstantiateVisitor(ComponentWorkbench workbench) {
    super(Opcodes.ASM5);
    this.workbench = workbench;
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.LifecycleVisitor.java

License:Apache License

public LifecycleVisitor(ComponentWorkbench workbench, String name, Transition transition) {
    super(Opcodes.ASM5);
    this.workbench = workbench;
    this.name = name;
    this.transition = transition;
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.MethodPropertyVisitor.java

License:Apache License

/**
 * Constructor./*  w  w w  .j  a v a 2  s  .c  o  m*/
 *
 * @param parent : element element.
 * @param method : attached method.
 */
public MethodPropertyVisitor(Element parent, String method) {
    super(Opcodes.ASM5);
    m_parent = parent;
    m_method = method;
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.PostRegistrationVisitor.java

License:Apache License

public PostRegistrationVisitor(ComponentWorkbench workbench, String name) {
    super(Opcodes.ASM5);
    this.workbench = workbench;
    this.name = name;
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.PostUnregistrationVisitor.java

License:Apache License

public PostUnregistrationVisitor(ComponentWorkbench workbench, String name) {
    super(Opcodes.ASM5);
    this.workbench = workbench;
    this.name = name;
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.ProvidesVisitor.java

License:Apache License

public ProvidesVisitor(ComponentWorkbench workbench) {
    super(Opcodes.ASM5);
    this.workbench = workbench;
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.ProvidesVisitor.java

License:Apache License

/**
 * Visit specifications array./*  w  w w. j ava  2 s .co  m*/
 *
 * @param name : attribute name
 * @return a visitor visiting each element of the array.
 * @see org.objectweb.asm.AnnotationVisitor#visitArray(java.lang.String)
 */
public AnnotationVisitor visitArray(String name) {
    if (name.equals("specifications")) {
        return new InterfaceArrayVisitor();
    } else if (name.equals("properties")) {
        // Create a new simple visitor to visit the nested ServiceProperty annotations
        // Collected properties are collected in m_prov
        return new AnnotationVisitor(Opcodes.ASM5) {
            public AnnotationVisitor visitAnnotation(String ignored, String desc) {
                return new FieldPropertyVisitor(m_prov);
            }
        };
    } else {
        return null;
    }
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.RequiresVisitor.java

License:Apache License

/**
 * Constructor./*from  ww w  .j a va2 s .co m*/
 * @param name : field name.
 */
public RequiresVisitor(ComponentWorkbench workbench, String name) {
    super(Opcodes.ASM5);
    this.workbench = workbench;
    this.m_field = name;
}

From source file:org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.ServiceControllerVisitor.java

License:Apache License

/**
 * Constructor.//  w ww.java 2s  .c o m
 * @param provides : element element.
 * @param field : field name.
 */
public ServiceControllerVisitor(String field, Element provides) {
    super(Opcodes.ASM5);
    this.provides = provides;
    controller.addAttribute(new Attribute("field", field));
}