Examples of addClass()


Examples of cuke4duke.internal.jvmclass.ClassLanguage.addClass()

    }

    @Test
    public void shouldAllowOneInheritedSubclass() throws Throwable {
        ClassLanguage classLanguage = new ClassLanguage(languageMixin, mock(ExceptionFactory.class), stepMother, Arrays.<ClassAnalyzer>asList(new JavaAnalyzer()));
        classLanguage.addClass(FlintStone.class);
        classLanguage.addClass(Fred.class);
        classLanguage.begin_scenario(null);
        List<StepDefinition> stepDefinitions = classLanguage.getStepDefinitions();
        assertEquals(1, stepDefinitions.size());
View Full Code Here

Examples of edu.umd.cs.findbugs.BugInstance.addClass()

                            .addCalledMethod(this);
                    Subtypes2 subtypes2 = AnalysisContext.currentAnalysisContext().getSubtypes2();
                    Set<ClassDescriptor> directSubtypes = subtypes2.getDirectSubtypes(getClassDescriptor());
                    if (!directSubtypes.isEmpty()) {
                        for (ClassDescriptor sub : directSubtypes) {
                            bug.addClass(sub).describe(ClassAnnotation.SUBCLASS_ROLE);
                        }
                        bug.setPriority(Priorities.HIGH_PRIORITY);
                    }
                    bugAccumulator.accumulateBug(bug, this);
                }
View Full Code Here

Examples of eu.stratosphere.nephele.util.JarFileCreator.addClass()

      inputFile = ServerTestUtils.createInputFile(0);
      outputFile = new File(ServerTestUtils.getTempDir() + File.separator + ServerTestUtils.getRandomFilename());

      // Create required jar file
      JarFileCreator jfc = new JarFileCreator(jarFile);
      jfc.addClass(DoubleSourceTask.class);
      jfc.addClass(DoubleTargetTask.class);
      jfc.createJarFile();

      // Create job graph
      final JobGraph jg = new JobGraph("Job Graph for Double Connection Test");
View Full Code Here

Examples of jminusminus.CLEmitter.addClass()

        CLEmitter e = new CLEmitter(true);
        ArrayList<String> accessFlags = new ArrayList<String>();

        // Add HelloWorld class
        accessFlags.add("public");
        e.addClass(accessFlags, "HelloWorld", "java/lang/Object", null, true);

        // Add message() method to HelloWorld
        accessFlags.clear();
        accessFlags.add("private");
        accessFlags.add("static");
View Full Code Here

Examples of jsynoptic.parser.ExpressionParser.addClass()

                    }
                    // also add sources
                    Set sources = DataSourcePool.global.dataSources();
                    for (Iterator it = sources.iterator(); it.hasNext();) addVariable(ep, it.next());
                    // Add known plugins => may bring in more mathematical functions
                    for (Iterator it = Run.plugins.iterator(); it.hasNext();) ep.addClass(it.next().getClass());
                    node = ep.parse();
                } catch (ParseException pe) {
                    // Also catches duplicate variable names
                    JOptionPane.showMessageDialog(JSynoptic.gui.getOwner(),pe.getLocalizedMessage(),resources.getString("InvalidExpression"),JOptionPane.ERROR_MESSAGE);
                    return;
View Full Code Here

Examples of jsynoptic.parser.ExpressionParser.addClass()

                VariableConflict vc = (VariableConflict) clm.get(i);
                ep.addVariable(new VariableAssociation(vc.ds, vc.var));
            }
            // Add known plugins => may bring in more mathematical functions
            for (Iterator it = Run.plugins.iterator(); it.hasNext();) {
                ep.addClass(it.next().getClass());
            }
            node = ep.parse();
        } catch (ParseException pe) {
            // Also catches duplicate variable names
            JOptionPane.showMessageDialog(JSynoptic.gui.getOwner(), pe.getLocalizedMessage(), resources
View Full Code Here

Examples of minecrafterror.analysis.AnalyzerNCDFE.addClass()

        .addTrigger("java.lang.IncompatibleClassChangeError")
        .addTrigger("java.lang.NoSuchMethodError")
        .addTrigger("java.lang.NoSuchFieldError"));
    {
      AnalyzerNCDFE a = new AnalyzerNCDFE();
      a.addClass("ModLoader",
          "You need to install ModLoader or Minecraft Forge.");
      a.addClass("EntityRendererProxy",
          "You need to install ModLoader or Minecraft Forge.");
      a.addClass("forge", "You need to install Minecraft Forge.");
      a.addClass("PlayerBase", "You need to install PlayerAPI.");
View Full Code Here

Examples of net.eldiosantos.command.commands.util.CommandVault.addClass()

        file = new File(params[i]);
        List<Class<?>> list = loader
            .loadAndScanJar(Command.class, file);

        for (Class<?> clazz : list) {
          vault.addClass((Class<? extends Command>) clazz);
        }

        file = null;
      }
View Full Code Here

Examples of net.flexmojos.oss.generator.TestGenerationRequest.addClass()

    @Test
    public void generate()
        throws GenerationException
    {
        TestGenerationRequest request = new TestGenerationRequest();
        request.addClass( CLASS, new File( "target/test-classes/mxmlc.jar" ) );
        request.setTransientOutputFolder( files );
        generator.generate( request );

        Assert.assertTrue( new File( files, CLASS.replace( '.', '/' ) + ".class" ).exists() );
    }
View Full Code Here

Examples of net.percederberg.grammatica.code.csharp.CSharpNamespace.addClass()

        // Add namespace
        if (gen.getNamespace() == null) {
            file.addClass(cls);
        } else {
            CSharpNamespace n = new CSharpNamespace(gen.getNamespace());
            n.addClass(cls);
            file.addNamespace(n);
        }

        // Add file comment
        str = file.toString() + "\n\n" + gen.getFileComment();
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.