本文整理了Java中com.google.gwt.core.ext.typeinfo.JPackage.getTypes()
方法的一些代码示例,展示了JPackage.getTypes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPackage.getTypes()
方法的具体详情如下:
包路径:com.google.gwt.core.ext.typeinfo.JPackage
类名称:JPackage
方法名:getTypes
暂无
代码示例来源:origin: libgdx/libgdx
for (JClassType t : p.getTypes()) {
gatherTypes(t.getErasedType(), types);
代码示例来源:origin: libgdx/libgdx
for (JClassType t : p.getTypes()) {
gatherTypes(t.getErasedType(), types);
代码示例来源:origin: mvp4g/mvp4g
public static Map<Class<? extends Annotation>, List<JClassType>> scan(TreeLogger logger,
TypeOracle typeOracle,
Class<? extends Annotation>[] annotationClasses) {
Map<Class<? extends Annotation>, List<JClassType>> annotationMap = new HashMap<Class<? extends Annotation>, List<JClassType>>();
for (Class<? extends Annotation> c : annotationClasses) {
annotationMap.put(c,
new ArrayList<JClassType>());
}
int nbClasses = 0;
Date start = new Date();
for (JPackage pack : typeOracle.getPackages()) {
for (JClassType type : pack.getTypes()) {
for (Class<? extends Annotation> c : annotationClasses) {
if (type.getAnnotation(c) != null) {
annotationMap.get(c)
.add(type);
}
}
}
nbClasses += pack.getTypes().length;
}
Date end = new Date();
logger.log(TreeLogger.INFO,
nbClasses + " classes scanned in " + Long.toString(end.getTime() - start.getTime()) + " ms.");
return annotationMap;
}
代码示例来源:origin: com.googlecode.mvp4g/mvp4g
public static Map<Class<? extends Annotation>, List<JClassType>> scan(TreeLogger logger,
TypeOracle typeOracle,
Class<? extends Annotation>[] annotationClasses) {
Map<Class<? extends Annotation>, List<JClassType>> annotationMap = new HashMap<Class<? extends Annotation>, List<JClassType>>();
for (Class<? extends Annotation> c : annotationClasses) {
annotationMap.put(c,
new ArrayList<JClassType>());
}
int nbClasses = 0;
Date start = new Date();
for (JPackage pack : typeOracle.getPackages()) {
for (JClassType type : pack.getTypes()) {
for (Class<? extends Annotation> c : annotationClasses) {
if (type.getAnnotation(c) != null) {
annotationMap.get(c)
.add(type);
}
}
}
nbClasses += pack.getTypes().length;
}
Date end = new Date();
logger.log(TreeLogger.INFO,
nbClasses + " classes scanned in " + Long.toString(end.getTime() - start.getTime()) + " ms.");
return annotationMap;
}
代码示例来源:origin: thothbot/parallax
for (JPackage pack : oracle.getPackages())
for (JClassType classtype : pack.getTypes())
代码示例来源:origin: thothbot/parallax
for (JClassType classtype : pack.getTypes())
代码示例来源:origin: junkdog/artemis-odb
for (JClassType t : p.getTypes()) {
gatherTypes(t.getErasedType(), types);
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-gwt
for (JClassType t : p.getTypes()) {
gatherTypes(t.getErasedType(), types);
内容来源于网络,如有侵权,请联系作者删除!