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_testExceptionType() {
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "boolean testExceptionType(com.xruby.runtime.builtin.RubyArray, com.xruby.runtime.lang.RubyException)"));
}

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

License:BSD License

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

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

License:BSD License

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

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

License:BSD License

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

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

License:BSD License

public void RubyAPI_expandArrayIfThereIsOnlyOneRubyArray() {
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.builtin.RubyArray expandArrayIfThereIsOnlyOneRubyArray(com.xruby.runtime.builtin.RubyArray)"));
}

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

License:BSD License

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

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

License:BSD License

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

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

License:BSD License

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

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

License:BSD License

public void RubyAPI_isDefinedPublicMethod(String name) {
    push(name);//from  w w  w. ja v a 2 s.c  om
    invokeStatic(Types.RUBY_API_TYPE, Method.getMethod(
            "com.xruby.runtime.lang.RubyValue isDefinedPublicMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyModule, String)"));
}

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

License:BSD License

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