Examples of SimpleNode


Examples of ch.njol.skript.config.SimpleNode

    Kleenean hadDelayBeforeLastIf = Kleenean.FALSE;
   
    for (final Node n : node) {
      SkriptLogger.setNode(n);
      if (n instanceof SimpleNode) {
        final SimpleNode e = (SimpleNode) n;
        final String s = replaceOptions("" + e.getKey());
        if (!SkriptParser.validateLine(s))
          continue;
        final Statement stmt = Statement.parse(s, "Can't understand this condition/effect: " + s);
        if (stmt == null)
          continue;
View Full Code Here

Examples of codec.gen.parser.SimpleNode

        if (pipeline.getSource().getType().equals("ASN1"))
        {
            log.info(
                "Processing ASN.1 file: " + sourceFile.getAbsolutePath());

            SimpleNode root = Asn1Parser.parse(sourceFile);
            if (root == null)
            {
                if (log.isEnabled(LogLevel.DEBUG))
                {
                    log.debug("processPipeline(Configuration, File) - end");
View Full Code Here

Examples of com.bazaarvoice.jless.ast.node.SimpleNode

@Test
public class NodeTest {

    public void testChildIterators() {
        InternalNode p = new PlaceholderNode();
        p.addChild(new SimpleNode("c1"));
        p.addChild(new SimpleNode("c2"));
        p.addChild(new SimpleNode("c3"));
        p.addChild(new SimpleNode("c4"));

        RandomAccessListIterator i1 = p.pushChildIterator();
        i1.next();
        RandomAccessListIterator i2 = p.pushChildIterator();
        i2.next();
        i2.next();
        RandomAccessListIterator i3 = p.pushChildIterator();
        i3.next();
        i3.next();
        i3.next();

        Assert.assertEquals(i1.nextIndex(), 1);
        Assert.assertEquals(i2.nextIndex(), 2);
        Assert.assertEquals(i3.nextIndex(), 3);
       
        p.addChild(2, new SimpleNode("c2a"));

        Assert.assertEquals(i1.nextIndex(), 1);
        Assert.assertEquals(i2.nextIndex(), 3);
        Assert.assertEquals(i3.nextIndex(), 4);
    }
View Full Code Here

Examples of com.google.common.collect.BstTesting.SimpleNode

    assertTrue(node.hasChild(side));
    assertEquals(expectedChild, node.getChild(side));
  }

  public void testHasChildLeaf() {
    SimpleNode leaf = new SimpleNode('a', null, null);
    testLacksChild(leaf, LEFT);
    testLacksChild(leaf, RIGHT);
  }
View Full Code Here

Examples of com.vaadin.sass.internal.tree.SimpleNode

    }

    // rule that is passed to the output as-is (except variable value
    // substitution) - no children
    public void unrecognizedRule(String text) {
        SimpleNode node = new SimpleNode(text);
        nodeStack.peek().appendChild(node);
    }
View Full Code Here

Examples of de.schauderhaft.degraph.model.SimpleNode

    this.typ = typ;
    return this;
  }

  public Node createSimpleNode() {
    Node simpleNode = new SimpleNode(typ, name);
    return simpleNode;
  }
View Full Code Here

Examples of fr.soleil.salsa.client.view.component.SimpleNode

     *
     * @param list
     * @return
     */
    private SimpleNode convertSuggestionsToTree(List<ISuggestionCategory> list) {
        SimpleNode root = new SimpleNode(null, "");

        for (ISuggestionCategory c : list) {
            SimpleNode cNode = new SimpleNode(null, c.getLabel());

            for (ISuggestionItem a : c.getSuggestionList()) {
                SimpleNode aNode = new SimpleNode(a.getValue(), a.getLabel());
                cNode.getChildren().add(aNode);
            }
            root.getChildren().add(cNode);
        }
        return root;
View Full Code Here

Examples of lupos.endpoint.client.formatreader.csv.SimpleNode

  @Override
  public QueryResult getQueryResult(final InputStream inputStream, final BindingsFactory bindingsFactory) {
    final QueryResult result = QueryResult.createInstance();

    try {
      final SimpleNode root = CSVParser.parse(inputStream);
      if(root == null){
        return null;
      }
      final LinkedList<Variable> vars = new LinkedList<Variable>();
      for(int i=0; i<root.jjtGetNumChildren(); i++){
        final Node child = root.jjtGetChild(i);
        if(child instanceof ASTVars){
          for(int j=0; j<child.jjtGetNumChildren(); j++){
            final Node childchild = child.jjtGetChild(j);
            if(childchild instanceof ASTVar){
              vars.add(new Variable(((ASTVar)childchild).getName()));
            }
          }
        }
      }
      for(int i=0; i<root.jjtGetNumChildren(); i++){
        final Node child = root.jjtGetChild(i);
        if(child instanceof ASTOneResult){
          final Bindings bindings = bindingsFactory.createInstance();
          final Iterator<Variable> varIt = vars.iterator();
          for(int j=0; j<child.jjtGetNumChildren() && varIt.hasNext(); j++){
            final Variable var = varIt.next();
View Full Code Here

Examples of lupos.endpoint.client.formatreader.tsv.SimpleNode

  @Override
  public QueryResult getQueryResult(final InputStream inputStream, final BindingsFactory bindingsFactory) {
    final QueryResult result = QueryResult.createInstance();

    try {
      final SimpleNode root = TSVParser.parse(inputStream);
      final LinkedList<Variable> vars = new LinkedList<Variable>();
      for(int i=0; i<root.jjtGetNumChildren(); i++){
        final Node child = root.jjtGetChild(i);
        if(child instanceof ASTVars){
          for(int j=0; j<child.jjtGetNumChildren(); j++){
            final Node childchild = child.jjtGetChild(j);
            if(childchild instanceof ASTVar){
              vars.add(new Variable(((ASTVar)childchild).getName()));
            }
          }
        }
      }
      for(int i=0; i<root.jjtGetNumChildren(); i++){
        final Node child = root.jjtGetChild(i);
        if(child instanceof ASTOneResult){
          final Bindings bindings = bindingsFactory.createInstance();
          final Iterator<Variable> varIt = vars.iterator();
          for(int j=0; j<child.jjtGetNumChildren() && varIt.hasNext(); j++){
            final Variable var = varIt.next();
View Full Code Here

Examples of lupos.sparql1_1.SimpleNode

    this.items = items;
  }

  public void addPredicate(RDFTerm child, String predicate) throws ModificationException {
    try {
      SimpleNode node = SPARQL1_1Parser.parseVerbWithoutVar(predicate, this.prefix.getPrefixNames());

      this.addPredicate(child, this.getItem(node));
    }
    catch(Throwable t) {
      this.handleParseError(t);
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.