Example usage for org.objectweb.asm.commons Method Method

List of usage examples for org.objectweb.asm.commons Method Method

Introduction

In this page you can find the example usage for org.objectweb.asm.commons Method Method.

Prototype

public Method(final String name, final String descriptor) 

Source Link

Document

Constructs a new Method .

Usage

From source file:de.bodden.tamiflex.playout.transformation.field.FieldToGenericStringTransformation.java

License:Open Source License

public FieldToGenericStringTransformation() {
    super(new Method("toGenericString", "()Ljava/lang/String;"));
}

From source file:de.bodden.tamiflex.playout.transformation.field.FieldToStringTransformation.java

License:Open Source License

public FieldToStringTransformation() {
    super(new Method("toString", "()Ljava/lang/String;"));
}

From source file:de.bodden.tamiflex.playout.transformation.method.MethodGetDeclaringClassTransformation.java

License:Open Source License

public MethodGetDeclaringClassTransformation() {
    super(new Method("getDeclaringClass", "()Ljava/lang/Class;"));
}

From source file:de.bodden.tamiflex.playout.transformation.method.MethodGetModifiersTransformation.java

License:Open Source License

public MethodGetModifiersTransformation() {
    super(new Method("getModifiers", "()I"));
}

From source file:de.bodden.tamiflex.playout.transformation.method.MethodGetNameTransformation.java

License:Open Source License

public MethodGetNameTransformation() {
    super(new Method("getName", "()Ljava/lang/String;"));
}

From source file:de.bodden.tamiflex.playout.transformation.method.MethodInvokeTransformation.java

License:Open Source License

public MethodInvokeTransformation() {
    super(new Method("invoke", "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;"));
}

From source file:de.bodden.tamiflex.playout.transformation.method.MethodToGenericStringTransformation.java

License:Open Source License

public MethodToGenericStringTransformation() {
    super(new Method("toGenericString", "()Ljava/lang/String;"));
}

From source file:de.bodden.tamiflex.playout.transformation.method.MethodToStringTransformation.java

License:Open Source License

public MethodToStringTransformation() {
    super(new Method("toString", "()Ljava/lang/String;"));
}

From source file:de.enough.polish.postcompile.java5.CloneMethodVisitor.java

License:Open Source License

public void visitMethodInsn(int opcode, String owner, String name, String desc) {
    Method method = new Method(name, desc);

    // Rewrite TYPE[].clone() calles.
    if (INVOKEVIRTUAL == opcode && this.enumArrayDesc.getDescriptor().equals(owner)
            && METHOD_CLONE.equals(method)) {
        dup();/*from   w w w .  ja  v a  2 s.  c  om*/
        arrayLength();
        dup();
        newArray(Type.INT_TYPE);
        dupX2();
        swap();
        push(0);
        dupX2();
        swap();
        invokeStatic(TYPE_SYSTEM, METHOD_ARRAYCOPY);
        return;
    }

    super.visitMethodInsn(opcode, owner, name, desc);
}

From source file:de.enough.polish.postcompile.java5.EnumMethodVisitor.java

License:Open Source License

public EnumMethodVisitor(MethodVisitor mv, int access, String name, String desc, String signature,
        String[] exceptions, Type owner) {
    super(mv, access, name, EnumManager.transform(desc));
    this.owner = owner;
    this.method = new Method(name, desc);
    this.manager = EnumManager.getInstance();
}