Class PortSeg.Parser
- java.lang.Object
-
- com.automation_pros.odva.cip.path.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.
-
-
-
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 interfacePathTokenParser
- Returns:
-
-