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_isDefinedInstanceVariable(String name) {
    push(name);//from   w w  w  .j a  va2s . co  m
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue isDefinedInstanceVariable(com.xruby.runtime.lang.RubyValue, String)"));
}

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

License:BSD License

public void RubyAPI_isDefinedCurrentNamespaceConstant(String name) {
    push(name);/*from  w w w.j  av a  2s .c  o  m*/
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue isDefinedCurrentNamespaceConstant(com.xruby.runtime.lang.RubyValue, String)"));
}

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

License:BSD License

public void RubyAPI_isDefinedSuperMethod(String name) {
    push(name);/*from ww w.j a  v a2 s.  co  m*/
    loadThis();
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue isDefinedSuperMethod(com.xruby.runtime.lang.RubyValue, String, com.xruby.runtime.lang.RubyMethod)"));
}

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

License:BSD License

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

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

License:BSD License

public void RubyAPI_setTopLevelConstant(String name) {
    push(name);/* w  w w.  j a  v a2 s  .  c o  m*/
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue setTopLevelConstant(com.xruby.runtime.lang.RubyValue, String)"));
}

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

License:BSD License

public void RubyAPI_getCurrentNamespaceConstant(String name) {
    push(name);/*from w  w w . ja va  2 s  .  com*/
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue getCurrentNamespaceConstant(com.xruby.runtime.lang.RubyModule, String)"));
}

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

License:BSD License

public void RubyAPI_getConstant(String name) {
    push(name);//ww  w .j  a v  a 2s.  c om
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue getConstant(com.xruby.runtime.lang.RubyValue, String)"));
}

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

License:BSD License

public void RubyAPI_setConstant(String name) {
    push(name);//from   www  . ja  va 2  s. com
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue setConstant(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue, String)"));
}

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

License:BSD License

public void RubyAPI_callArraySet() {
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "void callArraySet(com.xruby.runtime.lang.RubyValue, 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_defineClass() {
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyClass defineClass(String, com.xruby.runtime.lang.RubyValue)"));
}