private List<JClassType> getClazzBundles() { List<JClassType> clazzBundles = new ArrayList<>(); // Generate all other class bundles JClassType[] types = typeOracle.getTypes(); for(JClassType type : types) { if(TypeHelper.isInstanceOf(type, ClazzBundle.class)) { clazzBundles.add(type); } } return clazzBundles; }
private List<JClassType> getClazzBundles() { List<JClassType> clazzBundles = new ArrayList<>(); // Generate all other class bundles JClassType[] types = typeOracle.getTypes(); for(JClassType type : types) { if(TypeHelper.isInstanceOf(type, ClazzBundle.class)) { clazzBundles.add(type); } } return clazzBundles; }
protected List<Subtype> getPossibleTypesForClass(GeneratorContext context, JClassType classType, Id id, boolean isLeaf, TreeLogger logger, Collection<JsonSubTypes.Type> types) throws UnableToCompleteException { List<Subtype> possibleTypes = Lists.newArrayList(); List<JClassType> resolvedSubtypes = Lists.newArrayList(); if (types != null && !types.isEmpty()) { for (JsonSubTypes.Type type : types) { JClassType typeClass = BaseSourceCreator.find(type.value(), logger, context); if (!isLeaf || classType.equals(typeClass)) { resolvedSubtypes.add(typeClass); } } } else { for (JClassType typeClass : context.getTypeOracle().getTypes()) { if (!typeClass.isAbstract() && typeClass.isAssignableTo(classType)) { resolvedSubtypes.add(typeClass); } } } for (JClassType typeClass : resolvedSubtypes) { possibleTypes.add( new Subtype(id == Id.CLASS ? typeClass.getQualifiedSourceName() : "." + typeClass.getSimpleSourceName(), typeClass)); } return possibleTypes; }
protected List<Subtype> getPossibleTypesForClass(GeneratorContext context, JClassType classType, Id id, boolean isLeaf, TreeLogger logger, Collection<JsonSubTypes.Type> types) throws UnableToCompleteException { List<Subtype> possibleTypes = Lists.newArrayList(); List<JClassType> resolvedSubtypes = Lists.newArrayList(); if (types != null && !types.isEmpty()) { for (JsonSubTypes.Type type : types) { JClassType typeClass = BaseSourceCreator.find(type.value(), logger, context); if (!isLeaf || classType.equals(typeClass)) { resolvedSubtypes.add(typeClass); } } } else { for (JClassType typeClass : context.getTypeOracle().getTypes()) { if (!typeClass.isAbstract() && typeClass.isAssignableTo(classType)) { resolvedSubtypes.add(typeClass); } } } for (JClassType typeClass : resolvedSubtypes) { possibleTypes.add( new Subtype(id == Id.CLASS ? typeClass.getQualifiedSourceName() : "." + typeClass.getSimpleSourceName(), typeClass)); } return possibleTypes; }
public static String getReaderOrWriterImplQualifiedName(TypeOracle typeOracle, JClassType paramType, String readerOrWriterInterfaceName) { JGenericType type = typeOracle.findType(readerOrWriterInterfaceName).isGenericType(); JClassType parameterizedType = typeOracle.getParameterizedType(type, new JClassType[]{paramType}); JClassType implType = null; for (JClassType t : typeOracle.getTypes()) { if (t != type && t.isAssignableTo(parameterizedType)) { implType = t; break; } } if (implType != null) { return implType.getQualifiedSourceName(); } return null; }
sw.indent(); ArrayList<JClassType> types = new ArrayList<JClassType>(); for (JClassType t : oracle.getTypes()) { if (t.isInterface() != null && t.isAssignableTo(jsonBuilderType)) { if (t.isPublic()) {
for (JClassType type : typeOracle.getTypes()) { Json annotation = type.getAnnotation(Json.class); if (annotation != null && type.isInterface() != null) {
for (JClassType type : typeOracle.getTypes()) { Json annotation = type.getAnnotation(Json.class); if (annotation != null && type.isInterface() != null) {
for (JClassType check : oracle.getTypes()) {
JClassType[] types = oracle.getTypes(); for (JClassType type : types) { if (isBeanMarker(type)) {
final Map<String, MetaClass> classesToPush = new HashMap<String, MetaClass>(typeOracle.getTypes().length); final Set<String> translatable = new HashSet<String>(RebindUtils.findTranslatablePackages(context)); final Set<String> reloadable = RebindUtils.getReloadablePackageNames(context); for (final JClassType type : typeOracle.getTypes()) { if (!translatable.contains(type.getPackage().getName())) { continue;
for (JType type: generatorContext.getTypeOracle().getTypes()) { if (type.isClassOrInterface() != null) { JClassType classType = type.isClassOrInterface();
final Map<String, MetaClass> classesToPush = new HashMap<String, MetaClass>(typeOracle.getTypes().length); final Set<String> translatable = new HashSet<String>(RebindUtils.findTranslatablePackages(context)); final Set<String> reloadable = RebindUtils.getReloadablePackageNames(context); for (final JClassType type : typeOracle.getTypes()) { if (!translatable.contains(type.getPackage().getName())) { continue;
for (JClassType type : typeOracle.getTypes()) { Json annotation = type.getAnnotation(Json.class); if (annotation != null) {
if (doLog) logger = logger.branch(logLevel, "Injecting all remaining members into ClassPool"); for (com.google.gwt.core.ext.typeinfo.JClassType type : oracle.getTypes()) { ReflectionStrategy strategy = type.getAnnotation(ReflectionStrategy.class); if (strategy == null) {
.getTypes()) { ReflectionStrategy strategy = type .getAnnotation(ReflectionStrategy.class);
for (JClassType type : typeOracle.getTypes()) { if (type.isAnnotationPresent(ComponentExtension.class)) { if (type.isClass() == null || type.isAbstract()) {