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 RubyModule_defineClass() {
    invokeVirtual(Types.RUBY_MODULE_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyClass defineClass(String, com.xruby.runtime.lang.RubyValue)"));
}

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

License:BSD License

public void RubyAPI_defineModule(String name) {
    push(name);/*from  w w  w .  j  a va 2  s  . co  m*/
    invokeStatic(Types.RUBY_API_TYPE,
            Method.getMethod("com.xruby.runtime.lang.RubyModule defineModule(String)"));
}

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

License:BSD License

public void RubyAPI_initializeAsteriskParameter(int argc) {
    loadArg(1);//from w ww  .  j a va2 s.c om
    push(argc);
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue initializeAsteriskParameter(com.xruby.runtime.builtin.RubyArray, int)"));
}

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

License:BSD License

public void RubyAPI_initializeBlockParameter() {
    this.loadCurrentBlock();
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue initializeBlockParameter(com.xruby.runtime.lang.RubyBlock)"));
}

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

License:BSD License

public void RubyModule_defineModule(String name) {
    push(name);// w w w.ja v  a  2  s  . c om
    invokeVirtual(Types.RUBY_MODULE_TYPE,
            Method.getMethod("com.xruby.runtime.lang.RubyModule defineModule(String)"));
}

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

License:BSD License

public void RubyModule_getClassVariable(String name) {
    push(name);//from w w  w .j av a  2  s.  c  o  m
    invokeVirtual(Types.RUBY_MODULE_TYPE,
            Method.getMethod("com.xruby.runtime.lang.RubyValue getClassVariable(String)"));
}

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

License:BSD License

public void RubyModule_setClassVariable(String name) {
    push(name);// w ww.  j av a  2s  .  com
    invokeVirtual(Types.RUBY_MODULE_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue setClassVariable(com.xruby.runtime.lang.RubyValue, String)"));
}

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

License:BSD License

public void RubyModule_aliasMethod(String newName, String oldName) {
    push(newName);/* ww  w .  ja v a 2  s  . co  m*/
    push(oldName);
    invokeVirtual(Types.RUBY_MODULE_TYPE, Method.getMethod("void aliasMethod(String, String)"));
}

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

License:BSD License

public void RubyModule_undefMethod(String name) {
    push(name);
    invokeVirtual(Types.RUBY_MODULE_TYPE, Method.getMethod("void undefMethod(String)"));
}

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

License:BSD License

public void RubyModule_defineMethod(String methodName, String uniqueMethodName) {
    push(methodName);//  w w  w .j a v a2s  .  c o  m
    new_MethodClass(uniqueMethodName);
    invokeVirtual(Types.RUBY_MODULE_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue defineMethod(String, com.xruby.runtime.lang.RubyMethod)"));
}