public Collection<TypeDeclaration> getTypeDeclarations() { return delegate.getTypeDeclarations(); }
@Override public void process() { for ( TypeDeclaration typeDeclaration : env.getTypeDeclarations() ) { //We are just interested in classes if ( typeDeclaration instanceof ClassDeclaration ) { result.addClassDeclaration( ( ClassDeclaration ) typeDeclaration ); } } } };
/** * Method for getting all package declarations of a given environment. * * @param env The environment. * @return All package declarations of a given environment. */ public static Collection<PackageDeclaration> getAllPackageDeclarations(AnnotationProcessorEnvironment env) { HashMap<String, PackageDeclaration> packages = new HashMap<String, PackageDeclaration>(); Collection<TypeDeclaration> typeDeclarations = env.getTypeDeclarations(); for (TypeDeclaration typeDeclaration : typeDeclarations) { PackageDeclaration packageDecl = typeDeclaration.getPackage(); packages.put(packageDecl.getQualifiedName(), packageDecl); } return packages.values(); }
/** * Get all type declarations from the {@link #getAnnotationProcessorEnvironment() annotation * processor environment}. * * @return All type declarations considered for this loop tag. */ protected Collection<TypeDeclaration> getAllTypeDeclarations() throws MissingParameterException { PackageDeclaration pckg = getPackage(); if (pckg == null) { pckg = getCurrentPackageDeclaration(); } if (pckg != null) { ArrayList<TypeDeclaration> typeDeclarations = new ArrayList<TypeDeclaration>(pckg.getClasses()); typeDeclarations.addAll(pckg.getInterfaces()); return typeDeclarations; } return getAnnotationProcessorEnvironment().getTypeDeclarations(); }
ConfigReader configReader = new ConfigReader(env,env.getTypeDeclarations(),configFile,errorListener);
ConfigReader configReader = new ConfigReader(env,env.getTypeDeclarations(),configFile,errorListener);
public void process() { List<Reference> decls = new ArrayList<Reference>(); for(TypeDeclaration d : env.getTypeDeclarations()) {
public void process() { List<Reference> decls = new ArrayList<Reference>(); for(TypeDeclaration d : env.getTypeDeclarations()) {
potentialImpls.addAll(getAnnotationProcessorEnvironment().getTypeDeclarations()); if (implementationCandidates != null) { potentialImpls.addAll(Arrays.asList(implementationCandidates));
for (TypeDeclaration declaration : getAnnotationProcessorEnvironment().getTypeDeclarations()) { if (isEndpointImplementation(declaration)) { WebService ws = declaration.getAnnotation(WebService.class);
Collection<TypeDeclaration> typeDeclarations = new ArrayList<TypeDeclaration>(env.getTypeDeclarations()); typeDeclarations.addAll(Arrays.asList(additionalApiDefinitions));
Collection<TypeDeclaration> typeDeclarations = new ArrayList<TypeDeclaration>(env.getTypeDeclarations()); if (this.additionalApiClasses != null) { for (String additionalApiClass : this.additionalApiClasses) {