Package org.jruby.java.proxies
Class JavaInterfaceTemplate
java.lang.Object
org.jruby.java.proxies.JavaInterfaceTemplate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static final classprivate static classprivate static final classprivate static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddRealImplClassNew(RubyClass clazz) static IRubyObjectappend_features(ThreadContext context, IRubyObject self, IRubyObject clazz, Block block) private static voidappendFeaturesToClass(ThreadContext context, IRubyObject self, RubyClass clazz) private static voidappendFeaturesToModule(ThreadContext context, IRubyObject self, RubyModule module) private static voidcheckAlreadyReified(RubyClass clazz, Ruby runtime) static RubyModulestatic IRubyObjectextended(ThreadContext context, IRubyObject self, IRubyObject object) private static RubyArraygetInterfaceModules(IRubyObject module) private static RubyArraygetJavaInterfaces(IRubyObject clazz) static IRubyObjectimpl(ThreadContext context, IRubyObject self, IRubyObject[] args, Block implBlock) static IRubyObjectimplement(ThreadContext context, IRubyObject self, IRubyObject clazz) Deprecated.private static voidinitInterfaceImplMethods(ThreadContext context, RubyClass clazz) private static booleaninitInterfaceModules(IRubyObject self, IRubyObject module) static IRubyObjectjava_class(IRubyObject self) private static IRubyObjectnewInterfaceProxy(IRubyObject self) static IRubyObjectop_aref(ThreadContext context, IRubyObject self, IRubyObject[] args)
-
Constructor Details
-
JavaInterfaceTemplate
public JavaInterfaceTemplate()
-
-
Method Details
-
createJavaInterfaceTemplateModule
-
java_class
-
implement
@Deprecated public static IRubyObject implement(ThreadContext context, IRubyObject self, IRubyObject clazz) Deprecated. -
append_features
public static IRubyObject append_features(ThreadContext context, IRubyObject self, IRubyObject clazz, Block block) -
appendFeaturesToClass
-
checkAlreadyReified
- Throws:
RaiseException
-
initInterfaceImplMethods
-
addRealImplClassNew
-
newInterfaceProxy
-
appendFeaturesToModule
private static void appendFeaturesToModule(ThreadContext context, IRubyObject self, RubyModule module) -
extended
-
op_aref
-
impl
public static IRubyObject impl(ThreadContext context, IRubyObject self, IRubyObject[] args, Block implBlock) -
getJavaInterfaces
-
getInterfaceModules
-
initInterfaceModules
-