Package com.sun.mirror.util

Examples of com.sun.mirror.util.DeclarationFilter.filter()


      writer.println("import java.util.Set;");
      writer.println("import java.util.HashSet;");
      writer.println();
      GLCapabilitiesGenerator.generateClassPrologue(writer, context_specific, generate_error_checks);
      DeclarationFilter filter = DeclarationFilter.getFilter(InterfaceDeclaration.class);
      Collection<TypeDeclaration> interface_decls = filter.filter(env.getSpecifiedTypeDeclarations());
      for (TypeDeclaration typedecl : interface_decls) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        if (Utils.isFinal(interface_decl))
          GLCapabilitiesGenerator.generateField(writer, interface_decl);
      }
View Full Code Here


      writer.println("class " + REFERENCES_CLASS_NAME + " extends BaseReferences {");
                        writer.println("\t" + REFERENCES_CLASS_NAME + "(ContextCapabilities caps) {");
                        writer.println("\t\tsuper(caps);");
                        writer.println("\t}");
      DeclarationFilter filter = DeclarationFilter.getFilter(InterfaceDeclaration.class);
      Collection<TypeDeclaration> interface_decls = filter.filter(env.getSpecifiedTypeDeclarations());
      for (TypeDeclaration typedecl : interface_decls) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        generateReferencesFromMethods(writer, interface_decl);
      }
      writer.println();
View Full Code Here

      writer.println("import java.util.Set;");
      writer.println("import java.util.HashSet;");
      writer.println();
      GLESCapabilitiesGenerator.generateClassPrologue(writer, context_specific, generate_error_checks);
      DeclarationFilter filter = DeclarationFilter.getFilter(InterfaceDeclaration.class);
      Collection<TypeDeclaration> interface_decls = filter.filter(env.getSpecifiedTypeDeclarations());
      for ( TypeDeclaration typedecl : interface_decls ) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        if ( Utils.isFinal(interface_decl) )
          GLESCapabilitiesGenerator.generateField(writer, interface_decl);
      }
View Full Code Here

    public void process() {
        int counter = 0;
        AnnotationTypeDeclaration storeEntryAnnDecls = decls.iterator().next();
        DeclarationFilter classFilter = DeclarationFilter.getFilter(ClassDeclaration.class);
        for (Declaration decl : classFilter.filter(env.getDeclarationsAnnotatedWith(storeEntryAnnDecls))) {
            if (decl != null) {
                ClassDeclaration classDecl = (ClassDeclaration) decl;
                ClassInfo classInfo = new ClassInfo(classDecl);
                classInfo.setJavaDoc(classDecl.getDocComment());
                classInfos.add(classInfo);
View Full Code Here

                    }
                };

                Collection<? extends MethodDeclaration> methods = classDecl.getMethods();
                ParameterDeclaration paramType = null;
                for (MethodDeclaration m : setterFilter.filter(methods)) {
                    MethodInfo methodInfo = new MethodInfo();
                    String attributeName = null;
                    Attribute attrAnn = m.getAnnotation(Attribute.class);
                    if (attrAnn != null) {
                        attributeName = attrAnn.name();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.