Class CanonicalizeLiteral

  • All Implemented Interfaces:
    java.util.function.Function<Node,​Node>

    public class CanonicalizeLiteral
    extends java.lang.Object
    implements java.util.function.Function<Node,​Node>
    Convert literals to canonical form.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Node apply​(Node node)
      Canonicaize a literal, both lexical form and language tag (RFc canonical).
      static Node canonicalValue​(Node node)
      Convert the lexical form to a canonical form if one of the known datatypes, otherwise return the node argument.
      static CanonicalizeLiteral get()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Method Detail

      • apply

        public Node apply​(Node node)
        Canonicaize a literal, both lexical form and language tag (RFc canonical).
        Specified by:
        apply in interface java.util.function.Function<Node,​Node>
      • canonicalValue

        public static Node canonicalValue​(Node node)
        Convert the lexical form to a canonical form if one of the known datatypes, otherwise return the node argument. (same object :: ==)