File: annotated.rb

package info (click to toggle)
jruby 1.5.1-1%2Bdeb6u1
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze-lts
  • size: 47,024 kB
  • ctags: 74,144
  • sloc: ruby: 398,155; java: 169,506; yacc: 3,782; xml: 2,469; ansic: 415; sh: 279; makefile: 78; tcl: 40
file content (33 lines) | stat: -rw-r--r-- 948 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'java'

java_import "java.lang.Deprecated"

java_annotation :Deprecated
class DeprecatedClass
end

=begin
import org.jruby.Ruby;
import org.jruby.RubyObject;
import org.jruby.javasupport.util.RuntimeHelpers;
import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.javasupport.JavaUtil;
import org.jruby.RubyClass;
import java.lang.Deprecated;

@Deprecated()
public class DeprecatedClass extends RubyObject  {
  private static final Ruby __ruby__ = Ruby.getGlobalRuntime();
  private static final RubyClass __metaclass__;
  static {
    __ruby__.getLoadService().lockAndRequire("annotated.rb");
    RubyClass metaclass = __ruby__.getClass("DeprecatedClass");
    metaclass.setClassAllocator(DeprecatedClass.class);
    if (metaclass == null) throw new NoClassDefFoundError("Could not load Ruby class: DeprecatedClass");
        __metaclass__ = metaclass;
  }
  public DeprecatedClass() {
    super(__ruby__, __metaclass__);
  }
}
=end