Class TermUtils.ParseString

java.lang.Object
org.jreliability.booleanfunction.TermUtils.ParseString
Enclosing class:
TermUtils

protected static class TermUtils.ParseString extends Object
The TermUtils.ParseString is a helper class to parse a helper Object from a given String.
  • Field Details

    • string

      protected String string
      The original String.
    • current

      protected int current
      The pointer for the current position.
  • Constructor Details

  • Method Details

    • getCurrent

      public char getCurrent()
      Returns the current character.
      Returns:
      the current character
    • next

      public void next()
      Moves the pointer to the next character.
    • next

      public void next(int n)
      Moves the pointer to the n-th next character.
      Parameters:
      n - the n-th next
    • isEnd

      public boolean isEnd()
      Returns true if the end of the String is reached.
      Returns:
      true if the end of the string is reached
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • skipSpaces

      public void skipSpaces()
      Moves the pointer to the next character that is not a blank or newline character.