Class StringParser.StringOrPath

  • Enclosing class:
    StringParser

    protected static class StringParser.StringOrPath
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StringOrPath​(java.lang.String s, boolean path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean collapse​(StringParser.StringOrPath p)
      If this is a string, and the new one is a string, append them together and return true.
      java.lang.String getString()  
      boolean isPath()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StringOrPath

        public StringOrPath​(java.lang.String s,
                            boolean path)
    • Method Detail

      • isPath

        public boolean isPath()
      • getString

        public java.lang.String getString()
      • collapse

        public boolean collapse​(StringParser.StringOrPath p)
        If this is a string, and the new one is a string, append them together and return true. Otherwise returns false, indicating that a separate expression should be made.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object