Documentation of 'org.hecl.ParseState' Java class
ParseState
org.hecl

Class ParseState



  • public class ParseState
    extends java.lang.Object
    The ParseState class is the state of the current parse.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      boolean eoc 
      boolean eof 
      int len 
      int lineno 
    • Constructor Summary

      Constructors 
      Constructor and Description
      ParseState(java.lang.String in)
      Creates a new ParseState instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean done()
      The done method returns true if either the end-of-command or end-of-file condition is true.
      char nextchar()
      nextchar returns the next character, keeping track of end-of-command and end-of-file conditions.
      void remaining()
      The remaining method is for debugging purposes, and prints to standard output the remaining text.
      void rewind()
      The rewind method "rewinds" the input by one character.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • len

        public int len
      • lineno

        public int lineno
      • eof

        public boolean eof
      • eoc

        public boolean eoc
    • Constructor Detail

      • ParseState

        public ParseState(java.lang.String in)
        Creates a new ParseState instance.
        Parameters:
        in - a String value
    • Method Detail

      • nextchar

        public char nextchar()
        nextchar returns the next character, keeping track of end-of-command and end-of-file conditions.
        Returns:
        a char value
      • done

        public boolean done()
        The done method returns true if either the end-of-command or end-of-file condition is true.
        Returns:
        a boolean value
      • remaining

        public void remaining()
        The remaining method is for debugging purposes, and prints to standard output the remaining text.
      • rewind

        public void rewind()
        The rewind method "rewinds" the input by one character.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.