Examples of addImport()


Examples of cn.bran.japid.compiler.TranslateTemplateTask.addImport()

    t.importStatic(JapidPlayAdapter.class);
    t.importStatic(Validation.class);
    t.importStatic(JavaExtensions.class);
    t.addAnnotation(NoEnhance.class);
    if (DirUtil.hasLayouts(root))
      t.addImport(DirUtil.JAPIDVIEWS_ROOT + "._layouts.*");
    if (DirUtil.hasJavaTags(root))
      t.addImport(DirUtil.JAPIDVIEWS_ROOT + "._javatags.*");
    if (DirUtil.hasTags(root))
      t.addImport(DirUtil.JAPIDVIEWS_ROOT + "._tags.*");
    t.addImport("models.*");
 
View Full Code Here

Examples of com.caucho.java.gen.GenClass.addImport()

    GenClass genClass = new GenClass(type.getInstanceClassName());

    genClass.setSuperClassName(type.getBeanClass().getName());
   
    genClass.addImport("com.caucho.amber.manager.*");
    genClass.addImport("com.caucho.amber.entity.*");
    genClass.addImport("com.caucho.amber.type.*");

    AmberMappedComponent componentGenerator
      = (AmberMappedComponent) type.getComponentGenerator();
View Full Code Here

Examples of com.espertech.esper.epl.core.EngineImportServiceImpl.addImport()

        // Add auto-imports
        try
        {
            for (String importName : configSnapshot.getImports())
            {
                engineImportService.addImport(importName);
            }

            for (ConfigurationPlugInAggregationFunction config : configSnapshot.getPlugInAggregationFunctions())
            {
                engineImportService.addAggregation(config.getName(), config);
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.addImport()

        String realize = tsc.realize(logger);
       
        // Create the CometSerializer impl
        ClassSourceFileComposerFactory composerFactory = new ClassSourceFileComposerFactory(packageName, className);
       
        composerFactory.addImport(Serializer.class.getName());
        composerFactory.addImport(SerialMode.class.getName());
       
        composerFactory.setSuperclass(typeName);
        // TODO is the SERIALIZER required for DE RPC?
        SourceWriter sourceWriter = composerFactory.createSourceWriter(context, printWriter);
View Full Code Here

Examples of com.google.opengse.webapp.codegen.ClassDefinition.addImport()

      return;
    }

    ClassDefinition classdef = new ClassDefinition(EXAMPLE_CODE_PACKAGE, EXAMPLE_CODE_CLASS);
    classdef.setSuperClass(HttpServlet.class);
    classdef.addImport(HttpServlet.class);
    classdef.addImport(HttpServletRequest.class);
    classdef.addImport(HttpServletResponse.class);
    classdef.addImport(ServletException.class);
    classdef.addImport(IOException.class);
    MethodDefinition method = new MethodDefinition("service");
View Full Code Here

Examples of com.ibm.wsdl.DefinitionImpl.addImport()

       
        DefinitionImpl def = (DefinitionImpl)doc.getDefinition();
        Import impElem = imp.getImport();
        if(impElem != null)
        {
          def.addImport(impElem);
          if(!imp.isWSDLFileImport())
          {
            doc.addSchemas(imp.getSchemas());
          }
        }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Module.addImport()

            //Load the language module if we're not inside initCoreModules()
            dep = (JsonModule)getContext().getModules().getLanguageModule();
            //Add language module as a dependency
            //This will cause the dependency to be loaded later
            ModuleImport imp = new ModuleImport(dep, false, false);
            module.addImport(imp);
            module.setLanguageModule(dep);
            //Fix 280 part 1
            getContext().getModules().getDefaultModule().addImport(new ModuleImport(module, false, false));
        }
        return module;
View Full Code Here

Examples of com.thoughtworks.qdox.model.JavaSource.addImport()

    protected JavaClassParent createJavaClassParent(ClassLibrary classLibrary, String packaze, String[] importz) {
        JavaSource src = new JavaSource();
        src.setClassLibrary(classLibrary);
        for (int i = 0; importz != null && i < importz.length; i++) {
            src.addImport(importz[i]);
        }
        src.setPackage(packaze);
        return src;
    }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.util.ImportHelper.addImport()

     
      // create custom prefix
      model.getNamespaceManager().setPrefix(o.getNameSpace(),PUtils.createOntologyPrefix(o.getURI()));
     
      // import ontologies
      importHelper.addImport(o.getURI());
      importHelper.importOntologies();
      
      // don't know what is the function of this???
      //model.getNamespaceManager().setPrefix(ProtegeNames.NS, ProtegeNames.PROTEGE_PREFIX);
      if(imported == null)
View Full Code Here

Examples of javax.wsdl.Definition.addImport()

        }
       
        iter = definition.getImports().values().iterator();      
        while (iter.hasNext()) {
            Import importType = (Import)iter.next();
            def.addImport(importType);           
        }
       
        def.setDocumentationElement(definition.getDocumentationElement());
        def.setDocumentBaseURI(definition.getDocumentBaseURI());
       
View Full Code Here
TOP
Copyright © 2015 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.