Package com.sun.mirror.declaration

Examples of com.sun.mirror.declaration.InterfaceDeclaration


      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);
      }
      writer.println();
      for (TypeDeclaration typedecl : interface_decls) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        GLCapabilitiesGenerator.generateSymbolAddresses(writer, interface_decl);
      }
      writer.println();
      if (context_specific) {
        for (TypeDeclaration typedecl : interface_decls) {
          InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
          GLCapabilitiesGenerator.generateAddressesInitializers(writer, interface_decl);
        }
        writer.println();
      }

      writer.println("\tprivate static void remove(Set supported_extensions, String extension) {");
      writer.println("\t\tLWJGLUtil.log(extension + \" was reported as available but an entry point is missing\");");
      writer.println("\t\tsupported_extensions.remove(extension);");
      writer.println("\t}\n");

      GLCapabilitiesGenerator.generateInitStubsPrologue(writer, context_specific);
      for (TypeDeclaration typedecl : interface_decls) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        GLCapabilitiesGenerator.generateSuperClassAdds(writer, interface_decl);
      }
      for (TypeDeclaration typedecl : interface_decls) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        String simple_name = interface_decl.getSimpleName();
        if ( "GL11".equals(simple_name) )
          continue;
        GLCapabilitiesGenerator.generateInitStubs(writer, interface_decl, context_specific);
      }
      GLCapabilitiesGenerator.generateInitStubsEpilogue(writer, context_specific);
      writer.println();
      writer.println("\tstatic void unloadAllStubs() {");
      if (!context_specific) {
        writer.println("\t\tif (!loaded_stubs)");
        writer.println("\t\t\treturn;");
        for (TypeDeclaration typedecl : interface_decls) {
          InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
          GLCapabilitiesGenerator.generateUnloadStubs(writer, interface_decl);
        }
        writer.println("\t\tloaded_stubs = false;");
      }
      writer.println("\t}");
      writer.println();
      GLCapabilitiesGenerator.generateInitializerPrologue(writer);
      for (TypeDeclaration typedecl : interface_decls) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        if (Utils.isFinal(interface_decl))
          GLCapabilitiesGenerator.generateInitializer(writer, interface_decl);
      }
      writer.println("\t\ttracker.init();");
      writer.println("\t}");
View Full Code Here


                        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();
      writer.println("\tvoid copy(" + REFERENCES_CLASS_NAME + " " + REFERENCES_PARAMETER_NAME + ", int mask) {");
      writer.println("\t\tsuper.copy(" + REFERENCES_PARAMETER_NAME + ", mask);");
      writer.println("\t\tif ( (mask & GL11.GL_CLIENT_VERTEX_ARRAY_BIT) != 0 ) {");
      for (TypeDeclaration typedecl : interface_decls) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        generateCopiesFromMethods(writer, interface_decl);
      }
      writer.println("\t\t}");
      writer.println("\t}");
      writer.println("\tvoid clear() {");
      writer.println("\t\tsuper.clear();");
      for (TypeDeclaration typedecl : interface_decls) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        generateClearsFromMethods(writer, interface_decl);
      }
      writer.println("\t}");
      writer.println("}");
      writer.close();
View Full Code Here

      String baseName = extensionTag.baseClassName();
      description.append("<p><b>Extended tag: </b>");
      description.append(baseName);
      description.append("</p>");

      InterfaceDeclaration declaration = getInterfaceDeclaration(baseName + "Declaration");
      if (declaration != null) {
        UIComponentTag baseComponentTag = declaration.getAnnotation(UIComponentTag.class);
        if (baseComponentTag != null) {
          description.append(createDescription(baseComponentTag));
        }
      }
    }
View Full Code Here

      String baseName = extensionTag.baseClassName();
      description.append("<p><b>Extended tag: </b>");
      description.append(baseName);
      description.append("</p>");

      InterfaceDeclaration declaration = getInterfaceDeclaration(baseName + "Declaration");
      if (declaration != null) {
        UIComponentTag baseComponentTag = declaration.getAnnotation(UIComponentTag.class);
        if (baseComponentTag != null) {
          description.append(createDescription(baseComponentTag));
        }
      }
    }
View Full Code Here

      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);
      }
      writer.println();
      if ( context_specific ) {
        for ( TypeDeclaration typedecl : interface_decls ) {
          InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
          GLESCapabilitiesGenerator.generateSymbolAddresses(writer, interface_decl);
        }
        writer.println();
        for ( TypeDeclaration typedecl : interface_decls ) {
          InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
          GLESCapabilitiesGenerator.generateAddressesInitializers(writer, interface_decl);
        }
        writer.println();
      }

      if ( context_specific ) {
        writer.println("\tprivate static void remove(Set supported_extensions, String extension) {");
        writer.println("\t\tLWJGLUtil.log(extension + \" was reported as available but an entry point is missing\");");
        writer.println("\t\tsupported_extensions.remove(extension);");
        writer.println("\t}\n");
      }

      GLESCapabilitiesGenerator.generateInitStubsPrologue(writer, context_specific);
      for ( TypeDeclaration typedecl : interface_decls ) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        GLESCapabilitiesGenerator.generateSuperClassAdds(writer, interface_decl);
      }
      for ( TypeDeclaration typedecl : interface_decls ) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        if ( interface_decl.getSimpleName().startsWith("GLES") )
          continue;
        GLESCapabilitiesGenerator.generateInitStubs(writer, interface_decl, context_specific);
      }
      GLESCapabilitiesGenerator.generateInitStubsEpilogue(writer, context_specific);
      writer.println();
      writer.println("\tstatic void unloadAllStubs() {");
      if ( !context_specific ) {
        writer.println("\t\tif (!loaded_stubs)");
        writer.println("\t\t\treturn;");
        for ( TypeDeclaration typedecl : interface_decls ) {
          InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
          GLESCapabilitiesGenerator.generateUnloadStubs(writer, interface_decl);
        }
        writer.println("\t\tloaded_stubs = false;");
      }
      writer.println("\t}");
      writer.println();
      GLESCapabilitiesGenerator.generateInitializerPrologue(writer);
      for ( TypeDeclaration typedecl : interface_decls ) {
        InterfaceDeclaration interface_decl = (InterfaceDeclaration)typedecl;
        if ( Utils.isFinal(interface_decl) )
          GLESCapabilitiesGenerator.generateInitializer(writer, interface_decl);
      }
      writer.println("\t}");
      writer.println("}");
View Full Code Here

      String baseName = extensionTag.baseClassName();
      description.append("<p><b>Extended tag: </b>");
      description.append(baseName);
      description.append("</p>");

      InterfaceDeclaration declaration = getInterfaceDeclaration(baseName + "Declaration");
      if (declaration != null) {
        UIComponentTag baseComponentTag = declaration.getAnnotation(UIComponentTag.class);
        if (baseComponentTag != null) {
          description.append(createDescription(baseComponentTag));
        }
      }
    }
View Full Code Here

        for (ClassDeclaration c = classDeclaration; c != null
            && !c.getQualifiedName().equals(Object.class.getName()); c =
            c.getSuperclass().getDeclaration()) {
            gatherClassMethodDeclarations(c, results);
            for (InterfaceType superinterfaceType : c.getSuperinterfaces()) {
                InterfaceDeclaration superinterfaceDeclaration =
                    superinterfaceType.getDeclaration();
                if (superinterfaceDeclaration == null) {
                    throw new UnknownDeclarationException(
                        env,
                        classDeclaration,
View Full Code Here

        for (MethodDeclaration method : interfaceDeclaration.getMethods()) {
            methodDeclarations.add(method);
        }
        for (InterfaceType superinterfaceType : interfaceDeclaration
            .getSuperinterfaces()) {
            InterfaceDeclaration superInterfaceDeclaration =
                superinterfaceType.getDeclaration();
            if (superInterfaceDeclaration == null) {
                throw new UnknownDeclarationException(
                    env,
                    interfaceDeclaration,
View Full Code Here

        for (ClassDeclaration c = classDeclaration; c != null
            && !c.getQualifiedName().equals(Object.class.getName()); c =
            c.getSuperclass().getDeclaration()) {
            gatherClassMethodDeclarations(c, results);
            for (InterfaceType superinterfaceType : c.getSuperinterfaces()) {
                InterfaceDeclaration superinterfaceDeclaration =
                    superinterfaceType.getDeclaration();
                if (superinterfaceDeclaration == null) {
                    throw new UnknownDeclarationException(
                        env,
                        classDeclaration,
View Full Code Here

        for (MethodDeclaration method : interfaceDeclaration.getMethods()) {
            methodDeclarations.add(method);
        }
        for (InterfaceType superinterfaceType : interfaceDeclaration
            .getSuperinterfaces()) {
            InterfaceDeclaration superInterfaceDeclaration =
                superinterfaceType.getDeclaration();
            if (superInterfaceDeclaration == null) {
                throw new UnknownDeclarationException(
                    env,
                    interfaceDeclaration,
View Full Code Here

TOP

Related Classes of com.sun.mirror.declaration.InterfaceDeclaration

Copyright © 2018 www.massapicom. 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.