Examples of ClassName


Examples of gap.util.ClassName

        return Classes.For(named.getName());
    }
    public final static ClassDescriptor For(String name)
        throws java.io.IOException, gap.odl.Syntax
    {
        ClassName cn = new ClassName(name), ucn;
        if (cn.qualified)
            ucn = new ClassName(cn.unqualified);
        else
            ucn = cn;

        return Classes.For(ucn);
    }
View Full Code Here

Examples of gap.util.ClassName

     */
    public final static int Resources(Find find){
        int count = 0;
        while (find.hasNext()){
            jauk.Resource file = new jauk.Resource(find.next());
            ClassName name = new ClassName(file);
            synchronized(R){
                R.put(name,file);
            }
            count += 1;
        }
View Full Code Here

Examples of org.dcarew.model.annotations.ClassName

  // implementation
 
  private void init()
  {
    // name property
    ClassName nameAnnotation = clazz.getAnnotation(ClassName.class);
   
    if (nameAnnotation != null)
      name = nameAnnotation.value();
    else
      name = CoreUtils.getShortName(clazz);
   
    // icon property
    Icon iconAnnotation = clazz.getAnnotation(Icon.class);
View Full Code Here

Examples of org.netbeans.modules.classfile.ClassName

    private static final String findClassPackage (FileObject file) {
        try {
            InputStream in = file.getInputStream();
            try {
                ClassFile cf = new ClassFile(in,false);
                ClassName cn = cf.getName();
                return cn.getPackage();
            } finally {
                in.close ();
            }
        } catch (FileNotFoundException fnf) {
            //Ignore it
View Full Code Here

Examples of org.picocontainer.classname.ClassName

        ClassLoader currentClassLoader = this.getClass().getClassLoader();
        final DefaultClassLoadingPicoContainer pageObjects = new DefaultClassLoadingPicoContainer(currentClassLoader,
                store, primordial);
        pageObjects.change(Characteristics.USE_NAMES);
        // This loads all the Groovy page objects - can be stateful
        pageObjects.visit(new ClassName("pages.Home"), ".*\\.class", true,
                new DefaultClassLoadingPicoContainer.ClassVisitor() {
                    public void classFound(@SuppressWarnings("rawtypes") Class clazz) {
                        pageObjects.addComponent(clazz);
                    }
                });

        ClassLoadingPicoContainer steps = pageObjects.makeChildContainer("steps");
        steps.addComponent(new CacheFlusher(store));
        steps.addComponent(new ClassName("HousekeepingSteps"));
        steps.addComponent(new ClassName("EtsyDotComSteps"));
        // Before And After Steps registered by instance
        steps.addComponent(new PerStoryWebDriverSteps(driverProvider));
        steps.addComponent(new WebDriverScreenshotOnFailure(driverProvider, configuration.storyReporterBuilder()));
        // steps.addComponent(new WebDriverPageDumpOnFailure(driverProvider,
        // configuration.storyReporterBuilder()));
View Full Code Here

Examples of org.richfaces.cdk.model.ClassName

        // Infer UI class name from component type.
        Name name = inferBasicName(componentType);
        name.setSimpleName(UI + name.getSimpleName());

        return new ClassName(name.toString());
    }
View Full Code Here

Examples of org.richfaces.cdk.model.ClassName

        }

        Name name = inferBasicName(componentType);
        name.setSimpleName(name.getSimpleName() + "Handler");

        return new ClassName(name.toString());
    }
View Full Code Here

Examples of org.richfaces.cdk.model.ClassName

        name.setClassifier(Classifier.component);
        // All Behavior classes belongs to "component.behavior" package.
        name.setMarkup("behavior");

        return new ClassName(name.toString());
    }
View Full Code Here

Examples of org.richfaces.cdk.model.ClassName

        String simpleName = name.getSimpleName();
        simpleName = simpleName.replaceFirst("Base$", "");

        name.setSimpleName(simpleName);

        return new ClassName(name.toString());
    }
View Full Code Here

Examples of org.richfaces.cdk.model.ClassName

        }
    }

    protected void verifyEvents(ComponentLibrary library) {
        for (EventModel event : library.getEvents()) {
            ClassName listenerInterface = event.getListenerInterface();
            SourceUtils sourceUtils = sourceUtilsProvider.get();
            if (null != listenerInterface) {
                event.setGenerateListener(!sourceUtils.isClassExists(listenerInterface));
            }
            String methodName = event.getListenerMethod();
            if (null == methodName) {
                methodName = "process";
                event.setListenerMethod(methodName);
            }
            ClassName sourceInterface = event.getSourceInterface();
            if (null != sourceInterface) {
                event.setGenerateSource(!sourceUtils.isClassExists(sourceInterface));
            }
            // Propagate event to corresponding components.
            for (ComponentModel component : library.getComponents()) {
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.