Examples of pop()


Examples of org.platformlayer.ops.BindingScope.pop()

        BindingScope scope = BindingScope.push(machine, target, machineItem);
        try {
          OpsContext opsContext = OpsContext.get();
          OperationRecursor.doRecurseChildren(opsContext, controller);
        } finally {
          scope.pop();
        }
      } catch (OpsException e) {
        failed = true;
        log.warn("Error updating machine: " + machine, e);
      }
View Full Code Here

Examples of org.raml.parser.tagresolver.ContextPath.pop()

        assertThat(validationResults.get(0).getLine() + 1, is(4));
        assertThat(validationResults.get(0).getStartColumn(), is(UNKNOWN));
        assertThat(validationResults.get(0).getEndColumn(), is(UNKNOWN));
        ContextPath includeContext = validationResults.get(0).getIncludeContext();
        assertThat(includeContext.size(), is(2));
        IncludeInfo includeInfo = includeContext.pop();
        assertThat(includeInfo.getLine() + 1, is(7));
        assertThat(includeInfo.getStartColumn() + 1, is(25));
        assertThat(includeInfo.getEndColumn() + 1, is(46));
        assertThat(includeInfo.getIncludeName(), is(resource));
    }
View Full Code Here

Examples of org.sat4j.core.VecInt.pop()

        IVecInt backbone = new VecInt();
        int nvars = s.nVars();
        for (int i = 1; i <= nvars; i++) {
            backbone.push(i);
            if (s.isSatisfiable(backbone)) {
                backbone.pop().push(-i);
                if (s.isSatisfiable(backbone)) {
                    backbone.pop();
                } else {
                    // -i is in the backbone
                    backbone.pop().push(i);
View Full Code Here

Examples of org.sat4j.specs.IVecInt.pop()

        IVecInt backbone = new VecInt();
        int nvars = s.nVars();
        for (int i = 1; i <= nvars; i++) {
            backbone.push(i);
            if (s.isSatisfiable(backbone)) {
                backbone.pop().push(-i);
                if (s.isSatisfiable(backbone)) {
                    backbone.pop();
                } else {
                    // -i is in the backbone
                    backbone.pop().push(i);
View Full Code Here

Examples of org.sonar.channel.CodeReader.pop()

  }

  @Test
  public void upperCaseWordsStartingWithADotShoutNotBeHighlighted() {
    CodeReader reader = new CodeReader(".URL");
    reader.pop();
    assertFalse(tokenizer.consume(reader, codeBuilder));
  }

  @Test
  public void hasNextTokenWhenFirstCharacterIsNotAConstant() {
View Full Code Here

Examples of org.springframework.beans.factory.parsing.ParseState.pop()

    MockEntry entry = new MockEntry();

    ParseState parseState = new ParseState();
    parseState.push(entry);
    assertEquals("Incorrect peek value.", entry, parseState.peek());
    parseState.pop();
    assertNull("Should get null on peek()", parseState.peek());
  }

  public void testNesting() throws Exception {
    MockEntry one = new MockEntry();
View Full Code Here

Examples of org.teavm.common.IntegerStack.pop()

        InstructionTransitionExtractor transitionExtractor = new InstructionTransitionExtractor();
        boolean[] reachable = new boolean[program.basicBlockCount()];
        IntegerStack stack = new IntegerStack(program.basicBlockCount());
        stack.push(0);
        while (!stack.isEmpty()) {
            int i = stack.pop();
            if (reachable[i]) {
                continue;
            }
            reachable[i] = true;
            BasicBlock block = program.basicBlockAt(i);
View Full Code Here

Examples of org.teiid.query.optimizer.relational.RuleStack.pop()

   
    public void testInitialization() {
        RuleStack stack = new RuleStack();
        assertEquals("Initial stack is not empty", true, stack.isEmpty()); //$NON-NLS-1$
        assertEquals("Initial size is not 0", 0, stack.size()); //$NON-NLS-1$
        assertNull("Top is not null", stack.pop()); //$NON-NLS-1$
    }
   
    public void helpTestPop(RuleStack stack, OptimizerRule expectedPop, int expectedSize) {
        OptimizerRule out = stack.pop();
        int outSize = stack.size();
View Full Code Here

Examples of org.testng.reporters.XMLStringBuffer.pop()

      xsb.push("method-selectors");
      for (XmlMethodSelector selector: getMethodSelectors()) {
        xsb.getStringBuffer().append(selector.toXml(indent + "    "));
      }
     
      xsb.pop("method-selectors");
    }
   
    // parameters
    if (!m_parameters.isEmpty()) {
      for(Map.Entry<String, String> para: m_parameters.entrySet()) {
View Full Code Here

Examples of org.vietspider.html.parser.CharsToken.pop()

    String text = new String(buffer.load(file), "utf-8");
    CharsToken tokens = new CharsToken();
    TokenParser tokenParser = new TokenParser();
    tokenParser.createBeans(tokens, text.toCharArray());
    while(tokens.hasNext()){
      NodeImpl node = tokens.pop();
      String value = new String(node.getValue());
      System.out.println(value +" : "+ node.getType());
    }
  }
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.