Examples of LiteralNode


Examples of org.olap4j.mdx.LiteralNode

        }

        // We might need to sort the whole axis.
        ParseTreeNode sortedNode = null;
        if (axis.getSortOrder() != null) {
            LiteralNode evaluatorNode =
                 LiteralNode.createSymbol(
                     null,
                     axis.getSortIdentifierNodeName());
            sortedNode =
                new CallNode(
View Full Code Here

Examples of org.rascalmpl.parser.gtd.result.LiteralNode

    super(id, dot);
   
    this.literal = literal;
    this.production = production;
   
    result = new LiteralNode(production, literal);
  }
View Full Code Here

Examples of org.rascalmpl.parser.gtd.result.LiteralNode

    super(id, dot, enterFilters, completionFilters);
   
    this.literal = literal;
    this.production = production;
   
    result = new LiteralNode(production, literal);
  }
View Full Code Here

Examples of org.rascalmpl.parser.gtd.result.LiteralNode

        }
      }
      return null;
    }
   
    return new LiteralNode(production, resultArray);
  }
View Full Code Here

Examples of org.rascalmpl.parser.gtd.result.LiteralNode

        }
      }
      return null; // Did not match.
    }
   
    return new LiteralNode(production, resultLiteral);
  }
View Full Code Here

Examples of org.springframework.data.mongodb.core.spel.LiteralNode

     */
    @Override
    @SuppressWarnings("unchecked")
    protected Object convert(AggregationExpressionTransformationContext<LiteralNode> context) {

      LiteralNode node = context.getCurrentNode();
      Object value = node.getValue();

      if (context.hasPreviousOperation()) {

        if (node.isUnaryMinus(context.getParentNode())) {
          // unary minus operator
          return NumberUtils.convertNumberToTargetClass(((Number) value).doubleValue() * -1,
              (Class<Number>) value.getClass()); // retain type, e.g. int to -int
        }

View Full Code Here

Examples of org.wymiwyg.rdf.graphs.LiteralNode

  private FunctionallyGroundedNode functionalyze(NamedNode node) {
    FunctionallyGroundedNodeImpl result = new FunctionallyGroundedNodeImpl();
    Node afgn = new NodeImpl();
    SimpleNonTerminalMolecule molecule = new SimpleNonTerminalMolecule(afgn);
    String uriString = node.getURIRef();
    LiteralNode uriLit = new TypedLiteralNodeImpl(uriString, anyURIDataType);
    Triple triple = new TripleImpl(afgn, nameProp, uriLit);
    molecule.add(triple);
    molecule.markFinalized();
    result.addMolecule(molecule);
    result.markFinalized();
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.LiteralNode

   * @param replaceMap2
   */
  private void addNameStmts() {
    for (Entry<NamedNode, Node> entry : replaceMap.entrySet()) {
      String uriString = entry.getKey().getURIRef();
      LiteralNode uriLit = new TypedLiteralNodeImpl(uriString, anyURIDataType);
      triples.add(new TripleImpl(entry.getValue(), nameProp, uriLit));
    }
   
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.LiteralNode

        object instanceof URIImpl)
      return new URINode(object.toString());
    else if (object instanceof DatatypeLiteral)
    {
      DatatypeLiteral dl = (DatatypeLiteral)object;
      return new LiteralNode(JavaXSD.xsd2java(dl.getValue(),dl.getDatatype().toString()));
    }
    else if (object instanceof String || object instanceof LanguageTagLiteral || object instanceof Literal)
    {
      return new LiteralNode(object.toString());
    }
    else
      return null;
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.LiteralNode

    if (object.isBlank())
      return new BlankNode(object.getBlankNodeId().toString());
    else if (object.isURI())
      return new URINode(object.getURI());
    else if (object.isLiteral()) {
      return new LiteralNode(object.getLiteralValue());
    } else
      return null;
  }
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.