本文整理了Java中org.jboss.errai.codegen.meta.MetaClass.getAnnotations()
方法的一些代码示例,展示了MetaClass.getAnnotations()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MetaClass.getAnnotations()
方法的具体详情如下:
包路径:org.jboss.errai.codegen.meta.MetaClass
类名称:MetaClass
方法名:getAnnotations
暂无
代码示例来源:origin: org.jboss.errai/errai-bus
@Override
protected boolean isRelevantClass(MetaClass clazz) {
for (final Annotation anno : clazz.getAnnotations()) {
if (anno.annotationType().equals(Remote.class) || anno.annotationType().equals(FeatureInterceptor.class)
|| anno.annotationType().equals(InterceptsRemoteCall.class)) {
return true;
}
}
return false;
}
代码示例来源:origin: errai/errai
protected static boolean hasStartupAnnotation(final MetaClass injectedType) {
for (final Annotation anno : injectedType.getAnnotations()) {
if (anno.annotationType().getName().equals("javax.ejb.Startup")) {
return true;
}
}
return false;
}
代码示例来源:origin: errai/errai
@Override
protected boolean isRelevantClass(final MetaClass clazz) {
for (final Annotation anno : clazz.getAnnotations()) {
if (anno.annotationType().equals(Bindable.class) || anno.annotationType().equals(DefaultConverter.class)) {
return true;
}
}
return false;
}
}
代码示例来源:origin: org.jboss.errai/errai-data-binding
@Override
protected boolean isRelevantClass(final MetaClass clazz) {
for (final Annotation anno : clazz.getAnnotations()) {
if (anno.annotationType().equals(Bindable.class) || anno.annotationType().equals(DefaultConverter.class)) {
return true;
}
}
return false;
}
}
代码示例来源:origin: errai/errai
@Override
protected boolean isRelevantClass(MetaClass clazz) {
for (final Annotation anno : clazz.getAnnotations()) {
if (anno.annotationType().equals(Remote.class) || anno.annotationType().equals(FeatureInterceptor.class)
|| anno.annotationType().equals(InterceptsRemoteCall.class)) {
return true;
}
}
return false;
}
代码示例来源:origin: org.jboss.errai/errai-jaxrs-client
@Override
protected boolean isRelevantClass(MetaClass clazz) {
for (final Annotation anno : clazz.getAnnotations()) {
if (anno.annotationType().equals(Path.class) || anno.annotationType().equals(FeatureInterceptor.class)
|| anno.annotationType().equals(InterceptsRemoteCall.class) || anno.annotationType().equals(Provider.class)) {
return true;
}
}
return false;
}
}
代码示例来源:origin: errai/errai
private boolean isSimpleton(final MetaClass type) {
for (final Annotation anno : type.getAnnotations()) {
if (nonSimpletonTypeAnnotations.contains(anno.annotationType())
|| isStereotype(anno)
代码示例来源:origin: errai/errai
.publicOverridesMethod("getTypeAnnotations")
.append(
Stmt.load(filter(method.getDeclaringClass().getAnnotations(), translatablePackages)).returnValue())
.finish()
.publicOverridesMethod("proceed")
代码示例来源:origin: org.jboss.errai/errai-codegen
.publicOverridesMethod("getTypeAnnotations")
.append(
Stmt.load(filter(method.getDeclaringClass().getAnnotations(), translatablePackages)).returnValue())
.finish()
.publicOverridesMethod("proceed")
内容来源于网络,如有侵权,请联系作者删除!