Class CipPath.StaticTypeParser
- java.lang.Object
-
- com.automation_pros.odva.cip.path.CipPath.StaticTypeParser
-
- All Implemented Interfaces:
TypeTokenParser
- Enclosing class:
- CipPath
public static class CipPath.StaticTypeParser extends java.lang.Object implements TypeTokenParser
A parser factory for keywords that will return a constant data definition segment.
-
-
Field Summary
Fields Modifier and Type Field Description DataDefinitionSeg
segment
-
Constructor Summary
Constructors Constructor Description StaticTypeParser(DataDefinitionSeg segment)
-
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.
-
-
-
Field Detail
-
segment
public final DataDefinitionSeg segment
-
-
Constructor Detail
-
StaticTypeParser
public StaticTypeParser(DataDefinitionSeg 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.
-
-