java.lang.Object
com.singularsys.jep.configurableparser.tokens.Token
com.singularsys.jep.configurableparser.tokens.StringToken
All Implemented Interfaces:
Serializable

public class StringToken extends Token
Single or double-quoted strings.
Author:
Richard Morris
See Also:
  • Constructor Details

    • StringToken

      public StringToken(String source, String uquote, char delim, boolean incQuotes)
      Build a string token.
      Parameters:
      source - the source text which matches, includes quote marks
      uquote - the unquoted text, does not include quote marks
      delim - the delimiter character used
      incQuotes - whether quotes should be included
  • Method Details

    • isString

      public boolean isString()
      Overrides:
      isString in class Token
    • getUnquotedString

      public String getUnquotedString()
      Gets the string without quote marks.
      Returns:
      the matched string without quote marks
    • getCompleteString

      public String getCompleteString()
    • getQuoteChar

      public char getQuoteChar()