Class CipPath.StaticParser

  • All Implemented Interfaces:
    PathTokenParser
    Enclosing class:
    CipPath

    public static class CipPath.StaticParser
    extends java.lang.Object
    implements PathTokenParser
    A parser factory for keywords that will simply return a constant path segment. Subclasses of PathSegment that offer keywords that resolves to constants use this factory to register the keywords.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      CipPath segments  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CipPath parse​(java.util.List<java.lang.String> tokens)
      Given the parameters for a token as a list of strings, return a list of Path Segments.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • segments

        public final CipPath segments
    • Constructor Detail

      • StaticParser

        public StaticParser​(PathSegment... segments)
      • StaticParser

        public StaticParser​(CipPath segments)
    • Method Detail

      • parse

        public CipPath parse​(java.util.List<java.lang.String> tokens)
        Description copied from interface: PathTokenParser
        Given the parameters for a token as a list of strings, return a list of Path Segments. The keyword token is already removed from the list. This method must remove the parameter tokens it consumes.
        Specified by:
        parse in interface PathTokenParser
        Returns: