Class PortSeg.Parser

  • All Implemented Interfaces:
    PathTokenParser
    Enclosing class:
    PortSeg

    public static class PortSeg.Parser
    extends java.lang.Object
    implements PathTokenParser
    A port segment consumes two tokens: the device port (not internet port number) and the address. Currently supports an unsigned numeric address that fits in one byte or any string that resolves to an IP address. This parser is expected to registered for the 'port' keyword.
    • Constructor Summary

      Constructors 
      Constructor Description
      Parser()  
    • 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
    • Constructor Detail

      • Parser

        public Parser()
    • 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: