Class StringParser

  • All Implemented Interfaces:
    Parser

    public class StringParser
    extends java.lang.Object
    implements Parser
    This parser handles a literal string which contains references. The resulting expression will produce the string values
    • Constructor Detail

      • StringParser

        public StringParser()
      • StringParser

        protected StringParser​(java.lang.Class<? extends AbstractExpression> exprType)
        This constructor specifies what type of expression should be created. Different expressions will behave differently.
    • Method Detail

      • newStandardParser_Localized

        public static StringParser newStandardParser_Localized()
        Returns a parser who creates expressions that simply toString sub-expressions, adjusting the values for the locale.
      • newStandardParser_NonLocalized

        public static StringParser newStandardParser_NonLocalized()
        Returns a parser who creates an expression that is the toString of all of the sub-expressions, but with no consideration of the locale.
      • newQueryParser

        public static StringParser newQueryParser()
        Returns a parser that expects to parse sql queries for references
      • parseQueryWithBoundPaths

        protected StringParser.StringOrPath[] parseQueryWithBoundPaths​(java.lang.String query)
                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseQueryWithBoundPathsEscapedCharacters

        protected StringParser.StringOrPath[] parseQueryWithBoundPathsEscapedCharacters​(java.lang.String query)
      • parseQueryWithEscapedBoundPaths

        protected StringParser.StringOrPath[] parseQueryWithEscapedBoundPaths​(java.lang.String query)
                                                                       throws java.lang.Exception
        Chops up a query, returning the string segments and path segments separately
        Throws:
        java.lang.Exception
      • parseQueryWithBoundPathsNoEscape

        protected static StringParser.StringOrPath[] parseQueryWithBoundPathsNoEscape​(java.lang.String query)
                                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception