Package apg
Class Ast.CallbackData
- java.lang.Object
-
- apg.Ast.CallbackData
-
- Enclosing class:
- Ast
public class Ast.CallbackData extends java.lang.ObjectThe 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[]inputStringThe sentence or input string (as a char array) being parsed.java.lang.ObjectmyDataUser-defined data that the user sets prior to parsing with the parser function setMyData().
-
Constructor Summary
Constructors Constructor Description CallbackData()
-
-
-
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.
-
-