Class StructDefSeg.Parser
- java.lang.Object
-
- com.automation_pros.odva.cip.path.StructDefSeg.Parser
-
- All Implemented Interfaces:
TypeTokenParser
- Enclosing class:
- StructDefSeg
public static class StructDefSeg.Parser extends java.lang.Object implements TypeTokenParser
Parse after the keyword "Struct" to obtain either an abbreviated structure segment (numeric CRC code) or a named structure segment (anything other identifier).
-
-
Constructor Summary
Constructors Constructor Description Parser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataDefinitionSeg
parse(java.util.List<java.lang.String> tokens)
Given the parameters for a token as a list of strings, construct and return the corresponding data definition segment.
-
-
-
Method Detail
-
parse
public DataDefinitionSeg parse(java.util.List<java.lang.String> tokens)
Description copied from interface:TypeTokenParser
Given the parameters for a token as a list of strings, construct and return the corresponding data definition segment. The keyword token is already removed from the list. This method must remove the parameter tokens it consumes.- Specified by:
parse
in interfaceTypeTokenParser
- Parameters:
tokens
- The remaining tokens.- Returns:
- The single resultiing data definition segment.
-
-