Class LogicalSeg.LogicalParser

  • All Implemented Interfaces:
    PathTokenParser
    Enclosing class:
    LogicalSeg

    public static class LogicalSeg.LogicalParser
    extends java.lang.Object
    implements PathTokenParser
    An attribute segment must have a ID number that fits in an unsigned word. {Per Volume 1 Paragraph 4-9.1} This parser is expected to registered for the 'attr' keyword and the 'attribute' keyword.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.reflect.Method cacher  
      protected java.lang.reflect.Constructor<?> constructor  
    • Constructor Summary

      Constructors 
      Constructor Description
      LogicalParser​(java.lang.Class<? extends LogicalSeg> target)  
    • 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

      • constructor

        protected final java.lang.reflect.Constructor<?> constructor
      • cacher

        protected final java.lang.reflect.Method cacher
    • Constructor Detail

      • LogicalParser

        public LogicalParser​(java.lang.Class<? extends LogicalSeg> target)
    • 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: