Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
13 changed files
with
317 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
package THE_PACKAGE; | ||
|
||
import org.jruby.embed.ScriptingContainer; | ||
import org.jruby.javasupport.util.RuntimeHelpers; | ||
import org.jruby.runtime.builtin.IRubyObject; | ||
import org.jruby.javasupport.JavaUtil; | ||
import org.jruby.exceptions.RaiseException; | ||
import org.ruboto.Script; | ||
|
||
public class THE_RUBOTO_CLASS THE_ACTION THE_ANDROID_CLASS { | ||
private ScriptingContainer __ruby__; | ||
|
||
THE_CONSTANTS | ||
private IRubyObject[] callbackProcs = new IRubyObject[CONSTANTS_COUNT]; | ||
|
||
THE_CONSTRUCTORS | ||
private Object[] callbackProcs = new Object[CONSTANTS_COUNT]; | ||
|
||
private ScriptingContainer getRuby() { | ||
if (__ruby__ == null) __ruby__ = Script.getRuby(); | ||
return __ruby__; | ||
} | ||
THE_CONSTRUCTORS | ||
|
||
public void setCallbackProc(int id, IRubyObject obj) { | ||
public void setCallbackProc(int id, Object obj) { | ||
callbackProcs[id] = obj; | ||
} | ||
|
||
THE_METHODS | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.