本文整理了Java中org.jruby.anno.JRubyMethod.notImplemented()
方法的一些代码示例,展示了JRubyMethod.notImplemented()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JRubyMethod.notImplemented()
方法的具体详情如下:
包路径:org.jruby.anno.JRubyMethod
类名称:JRubyMethod
方法名:notImplemented
暂无
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
Modifier.isStatic(method0.getModifiers()),
CallConfiguration.getCallConfigByAnno(anno0),
anno0.notImplemented());
return ic;
} catch (Exception e) {
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
isStatic + ", " +
"CallConfiguration." + AnnotationHelper.getCallConfigNameByAnno(anno) + ", " +
anno.notImplemented() + ", "
+ ((TypeElement)method.getEnclosingElement()).getQualifiedName() + ".class, "
+ "\"" + method.getSimpleName() + "\", "
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
+ isStatic + ", "
+ "CallConfiguration." + AnnotationHelper.getCallConfigNameByAnno(anno) + ", "
+ anno.notImplemented() + ", "
+ ((TypeElement)method.getEnclosingElement()).getQualifiedName() + ".class, "
+ "\"" + method.getSimpleName() + "\", "
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
Modifier.isStatic(method0.getModifiers()),
CallConfiguration.getCallConfigByAnno(anno0),
anno0.notImplemented());
return ic;
} catch (Exception e) {
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
isStatic + ", " +
"CallConfiguration." + AnnotationHelper.getCallConfigNameByAnno(anno) + ", " +
anno.notImplemented() + ", "
+ ((TypeElement)method.getEnclosingElement()).getQualifiedName() + ".class, "
+ "\"" + method.getSimpleName() + "\", "
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
+ isStatic + ", "
+ "CallConfiguration." + AnnotationHelper.getCallConfigNameByAnno(anno) + ", "
+ anno.notImplemented() + ", "
+ ((TypeElement)method.getEnclosingElement()).getQualifiedName() + ".class, "
+ "\"" + method.getSimpleName() + "\", "
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/**
* Use reflection to provide a method handle based on an annotated Java
* method.
*
* @see org.jruby.internal.runtime.methods.MethodFactory#getAnnotatedMethod
*/
public DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc) {
try {
if (!Modifier.isPublic(desc.getDeclaringClass().getModifiers())) {
LOG.warn("warning: binding non-public class {}; reflected handles won't work", desc.declaringClassName);
}
Method method = desc.getDeclaringClass().getDeclaredMethod(desc.name, desc.getParameterClasses());
JavaMethod ic = new ReflectedJavaMethod(implementationClass, method, desc.anno);
TypePopulator.populateMethod(
ic,
ic.getArity().getValue(),
method.getName(),
Modifier.isStatic(method.getModifiers()),
CallConfiguration.getCallConfigByAnno(desc.anno),
desc.anno.notImplemented());
return ic;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Use reflection to provide a method handle based on an annotated Java
* method.
*
* @see org.jruby.internal.runtime.methods.MethodFactory#getAnnotatedMethod
*/
public DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc) {
try {
if (!Modifier.isPublic(desc.getDeclaringClass().getModifiers())) {
LOG.warn("warning: binding non-public class {}; reflected handles won't work", desc.declaringClassName);
}
Method method = desc.getDeclaringClass().getDeclaredMethod(desc.name, desc.getParameterClasses());
JavaMethod ic = new ReflectedJavaMethod(implementationClass, method, desc.anno);
TypePopulator.populateMethod(
ic,
ic.getArity().getValue(),
method.getName(),
Modifier.isStatic(method.getModifiers()),
CallConfiguration.getCallConfigByAnno(desc.anno),
desc.anno.notImplemented());
return ic;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/**
* Use code generation to provide a method handle based on an annotated Java
* method.
*
* @see org.jruby.runtime.MethodFactory#getAnnotatedMethod
*/
public DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc) {
String javaMethodName = desc.name;
try {
Class c = getAnnotatedMethodClass(Arrays.asList(desc));
JavaMethod ic = (JavaMethod)c.getConstructor(new Class[]{RubyModule.class, Visibility.class}).newInstance(new Object[]{implementationClass, desc.anno.visibility()});
TypePopulator.populateMethod(
ic,
Arity.fromAnnotation(desc.anno, desc.actualRequired).getValue(),
javaMethodName,
desc.isStatic,
CallConfiguration.getCallConfigByAnno(desc.anno),
desc.anno.notImplemented(),
desc.getDeclaringClass(),
desc.name,
desc.getReturnClass(),
desc.getParameterClasses());
return ic;
} catch(Exception e) {
e.printStackTrace();
throw implementationClass.getRuntime().newLoadError(e.getMessage());
}
}
代码示例来源:origin: org.jruby/jruby-complete
quote(method.getSimpleName()),
isStatic,
anno.notImplemented(),
((TypeElement) method.getEnclosingElement()).getQualifiedName() + ".class",
quote(method.getSimpleName()),
代码示例来源:origin: org.jruby/jruby-complete
quote(method.getSimpleName()),
isStatic,
anno.notImplemented(),
((TypeElement) method.getEnclosingElement()).getQualifiedName() + ".class",
quote(method.getSimpleName()),
代码示例来源:origin: org.jruby/jruby-core
quote(method.getSimpleName()),
isStatic,
anno.notImplemented(),
((TypeElement) method.getEnclosingElement()).getQualifiedName() + ".class",
quote(method.getSimpleName()),
代码示例来源:origin: org.jruby/jruby-core
quote(method.getSimpleName()),
isStatic,
anno.notImplemented(),
((TypeElement) method.getEnclosingElement()).getQualifiedName() + ".class",
quote(method.getSimpleName()),
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Use code generation to provide a method handle based on an annotated Java
* method.
*
* @see org.jruby.runtime.MethodFactory#getAnnotatedMethod
*/
public DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc) {
String javaMethodName = desc.name;
try {
Class c = getAnnotatedMethodClass(Arrays.asList(desc));
JavaMethod ic = (JavaMethod)c.getConstructor(new Class[]{RubyModule.class, Visibility.class}).newInstance(new Object[]{implementationClass, desc.anno.visibility()});
TypePopulator.populateMethod(
ic,
Arity.fromAnnotation(desc.anno, desc.actualRequired).getValue(),
javaMethodName,
desc.isStatic,
CallConfiguration.getCallConfigByAnno(desc.anno),
desc.anno.notImplemented(),
desc.getDeclaringClass(),
desc.name,
desc.getReturnClass(),
desc.getParameterClasses());
return ic;
} catch(Exception e) {
e.printStackTrace();
throw implementationClass.getRuntime().newLoadError(e.getMessage());
}
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
desc1.isStatic,
CallConfiguration.getCallConfig(info.isFrame(), info.isScope()),
desc1.anno.notImplemented(),
desc1.getDeclaringClass(),
desc1.name,
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
desc1.isStatic,
CallConfiguration.getCallConfig(info.isFrame(), info.isScope()),
desc1.anno.notImplemented(),
desc1.getDeclaringClass(),
desc1.name,
代码示例来源:origin: org.jruby/jruby-complete
/**
* Use code generation to provide a method handle based on an annotated Java
* method.
*
* @see org.jruby.runtime.MethodFactory#getAnnotatedMethod
*/
public DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc, String name) {
String javaMethodName = desc.name;
try {
Class c = getAnnotatedMethodClass(Collections.singletonList(desc));
JavaMethod ic = constructJavaMethod(implementationClass, desc, name, c);
TypePopulator.populateMethod(
ic,
Arity.fromAnnotation(desc.anno, desc.actualRequired).getValue(),
javaMethodName,
desc.isStatic,
desc.anno.notImplemented(),
desc.declaringClass,
desc.name,
desc.returnClass,
desc.parameters);
return ic;
} catch(Exception e) {
LOG.error(e);
throw implementationClass.getRuntime().newLoadError(e.getMessage());
}
}
代码示例来源:origin: org.jruby/jruby-core
/**
* Use code generation to provide a method handle based on an annotated Java
* method.
*
* @see org.jruby.runtime.MethodFactory#getAnnotatedMethod
*/
public DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc, String name) {
String javaMethodName = desc.name;
try {
Class c = getAnnotatedMethodClass(Collections.singletonList(desc));
JavaMethod ic = constructJavaMethod(implementationClass, desc, name, c);
TypePopulator.populateMethod(
ic,
Arity.fromAnnotation(desc.anno, desc.actualRequired).getValue(),
javaMethodName,
desc.isStatic,
desc.anno.notImplemented(),
desc.declaringClass,
desc.name,
desc.returnClass,
desc.parameters);
return ic;
} catch(Exception e) {
LOG.error(e);
throw implementationClass.getRuntime().newLoadError(e.getMessage());
}
}
代码示例来源:origin: org.jruby/jruby-complete
javaMethodName,
desc1.isStatic,
desc1.anno.notImplemented(),
desc1.declaringClass,
desc1.name,
代码示例来源:origin: org.jruby/jruby-core
javaMethodName,
desc1.isStatic,
desc1.anno.notImplemented(),
desc1.declaringClass,
desc1.name,
内容来源于网络,如有侵权,请联系作者删除!