List of usage examples for org.objectweb.asm.commons Method getMethod
public static Method getMethod(final String method)
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void ObjectFactory_createHash() { invokeStatic(Types.OBJECTFACTORY_TYPE, Method.getMethod("com.xruby.runtime.builtin.RubyHash createHash()")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void ObjectFactory_createRange() { invokeStatic(Types.OBJECTFACTORY_TYPE, Method.getMethod( "com.xruby.runtime.builtin.RubyRange createRange(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue, boolean)")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void GlobalVatiables_set(String var) { if (GlobalVariables.isReadOnly(var)) { push(var); invokeStatic(Types.GLOBAL_VARIABLES_TYPE, Method.getMethod("void throwNameError(String)")); return;/*from w ww . j a v a 2 s. com*/ } push(var); invokeStatic(Types.GLOBAL_VARIABLES_TYPE, Method.getMethod("com.xruby.runtime.lang.RubyValue set(com.xruby.runtime.lang.RubyValue, String)")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void GlobalVatiables_get(String var) { push(var);/*from ww w .jav a 2s . c om*/ invokeStatic(Types.GLOBAL_VARIABLES_TYPE, Method.getMethod("com.xruby.runtime.lang.RubyValue get(String)")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void GlobalVariables_alias(String newName, String oldName) { push(newName);//from w ww . j av a2 s . co m push(oldName); invokeStatic(Types.GLOBAL_VARIABLES_TYPE, Method.getMethod("void alias(String, String)")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void RubyAPI_callPublicMethod(String methodName) { loadRubyID(methodName);/*ww w .j ava2 s . c o m*/ invokeStatic(Types.RUBY_API_TYPE, Method.getMethod( "com.xruby.runtime.lang.RubyValue callPublicMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.builtin.RubyArray, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.RubyID)")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void RubyAPI_callPublicNoArgMethod(String methodName) { loadRubyID(methodName);//from ww w . ja v a2 s. c o m invokeStatic(Types.RUBY_API_TYPE, Method.getMethod( "com.xruby.runtime.lang.RubyValue callPublicNoArgMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.RubyID)")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void RubyAPI_callPublicOneArgMethod(String methodName) { loadRubyID(methodName);/*from ww w . ja va 2 s. c om*/ invokeStatic(Types.RUBY_API_TYPE, Method.getMethod( "com.xruby.runtime.lang.RubyValue callPublicOneArgMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.RubyID)")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void RubyAPI_callPublicTwoArgMethod(String methodName) { loadRubyID(methodName);//from w w w.j a va 2s . co m invokeStatic(Types.RUBY_API_TYPE, Method.getMethod( "com.xruby.runtime.lang.RubyValue callPublicTwoArgMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyValue, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.RubyID)")); }
From source file:com.xruby.compiler.codegen.MethodGenerator.java
License:BSD License
public void RubyAPI_callMethod(String methodName) { loadRubyID(methodName);/*from w w w . j a va 2 s . c om*/ invokeStatic(Types.RUBY_API_TYPE, Method.getMethod( "com.xruby.runtime.lang.RubyValue callMethod(com.xruby.runtime.lang.RubyValue, com.xruby.runtime.builtin.RubyArray, com.xruby.runtime.lang.RubyBlock, com.xruby.runtime.lang.RubyID)")); }