Package apg

Class Ast.CallbackData

  • Enclosing class:
    Ast

    public class Ast.CallbackData
    extends java.lang.Object
    The parser provisions each callback function with an instance of this class. giving the user access to the input string and optionally any other user-defined data that the function may need to do its job.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      char[] inputString
      The sentence or input string (as a char array) being parsed.
      java.lang.Object myData
      User-defined data that the user sets prior to parsing with the parser function setMyData().
    • Constructor Summary

      Constructors 
      Constructor Description
      CallbackData()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • myData

        public java.lang.Object myData
        User-defined data that the user sets prior to parsing with the parser function setMyData(). Otherwise, null.
      • inputString

        public char[] inputString
        The sentence or input string (as a char array) being parsed. Any changes made to this string during translation will render the results of the translation unpredictable.
    • Constructor Detail

      • CallbackData

        public CallbackData()