本文整理了Java中org.jboss.errai.codegen.meta.MetaClass.isPublic()
方法的一些代码示例,展示了MetaClass.isPublic()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MetaClass.isPublic()
方法的具体详情如下:
包路径:org.jboss.errai.codegen.meta.MetaClass
类名称:MetaClass
方法名:isPublic
暂无
代码示例来源:origin: errai/errai
@Override
public void callback(final MetaClass type) {
if (!type.getFullyQualifiedName().startsWith("java.util")) {
if (type.isInterface()) {
jsTypeIfaces.add(type);
}
else if (type.isConcrete() && type.isPublic()) {
findJsTypeIfaces(type)
.forEach(iface -> {
jsTypeIfaces.add(iface);
jsTypeIfaceImpls.put(iface, type);
});
}
}
}
代码示例来源:origin: errai/errai
public static Scope scopeOf(final MetaClass clazz) {
if (clazz.isPublic()) {
return Scope.Public;
}
else if (clazz.isPrivate()) {
return Scope.Private;
}
else if (clazz.isProtected()) {
return Scope.Protected;
}
else {
return Scope.Package;
}
}
代码示例来源:origin: org.jboss.errai/errai-codegen
public static Scope scopeOf(final MetaClass clazz) {
if (clazz.isPublic()) {
return Scope.Public;
}
else if (clazz.isPrivate()) {
return Scope.Private;
}
else if (clazz.isProtected()) {
return Scope.Protected;
}
else {
return Scope.Package;
}
}
代码示例来源:origin: errai/errai
private boolean isTypeAccessible(final MetaClass type) {
return type.isPublic() && (isTopLevel(type) || (type.isStatic() && isEnclosingTypeAccessible(type)));
}
代码示例来源:origin: errai/errai
private boolean isVisibleType(final MetaClass type) {
if (type.isArray()) {
return isVisibleType(type.getComponentType());
} else {
return type.isPublic() || type.isProtected() || type.isPrimitive();
}
}
代码示例来源:origin: errai/errai
private void addProviderForWidgetType(final InjectionContext injectionContext, final MetaClass widgetType) {
if (widgetType.isPublic() && widgetType.isDefaultInstantiable()) {
final InjectableHandle handle = new InjectableHandle(widgetType,
injectionContext.getQualifierFactory().forDefault());
代码示例来源:origin: errai/errai
injectable.getInjectedType().getFullyQualifiedName(), createJsTypeProviderFor(injectable)));
for (final MetaClass mc : injectable.getInjectedType().getAllSuperTypesAndInterfaces()) {
if (mc.isPublic() && !mc.equals(injectable.getInjectedType())
&& !mc.getFullyQualifiedName().equals("java.lang.Object") && mc.isAnnotationPresent(JsType.class)) {
stmts.add(loadVariable("windowContext").invoke("addSuperTypeAlias",
代码示例来源:origin: errai/errai
@Test
public void testAccessModifiersForPublicTopLevelClass() throws Exception {
final MetaClass child = getMetaClass(Child.class);
assertTrue(child.isPublic());
assertFalse(child.isProtected());
assertFalse(child.isPrivate());
assertTrue(child.isDefaultInstantiable());
}
内容来源于网络,如有侵权,请联系作者删除!