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

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

Introduction

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

Prototype

public static Method getMethod(final String method) 

Source Link

Document

Returns a Method corresponding to the given Java method declaration.

Usage

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_callSuperMethod() {
    loadThis();/* w w w .  j a v  a  2  s.c  o  m*/
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue callSuperMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.builtin.RubyArray, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.MethodBlockBase)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_callSuperNoArgMethod() {
    loadThis();//from w  ww .java2 s .  co  m
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue callSuperNoArgMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.MethodBlockBase)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_callSuperOneArgMethod() {
    loadThis();/*from   w w w  .  j a va  2 s.  c o m*/
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue callSuperOneArgMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.MethodBlockBase)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_callSuperTwoArgMethod() {
    loadThis();/*from ww w  .  j  a  v a 2  s . c om*/
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue callSuperTwoArgMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.MethodBlockBase)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_operatorNot() {
    invokeStatic(Types.RUBY_API_TYPE,
            Method.getMethod("com.xruby.runtime.lang.RubyValue operatorNot(com.xruby.runtime.lang.RubyValue)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_runCommandAndCaptureOutput(String command) {
    push(command);/*from  ww w . j a  v a  2s  .  c  o m*/
    invokeStatic(Types.RUBY_API_TYPE,
            Method.getMethod("com.xruby.runtime.lang.RubyValue runCommandAndCaptureOutput(String)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_runCommandAndCaptureOutput() {
    invokeVirtual(Types.RUBY_STRING_TYPE, Method.getMethod("String toString()"));
    invokeStatic(Types.RUBY_API_TYPE,
            Method.getMethod("com.xruby.runtime.lang.RubyValue runCommandAndCaptureOutput(String)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_testCaseEqual() {
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "boolean testCaseEqual(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_testCaseEqual2() {
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "boolean testCaseEqual(com.xruby.runtime.builtin.RubyArray, com.xruby.runtime.lang.RubyValue)"));
}

From source file:com.xruby.compiler.codegen.MethodGenerator.java

License:BSD License

public void RubyAPI_testCaseEqualNotNil() {
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "boolean testCaseEqualNotNil(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue)"));
}