Added a toString() for debugging

This commit is contained in:
Oliver Burn 2002-05-26 12:57:17 +00:00
parent 441ab3e13b
commit 39a7271a2a
1 changed files with 7 additions and 0 deletions

View File

@ -57,4 +57,11 @@ public class MyCommonAST
{
return mColumnNo;
}
/** @return a string representation of the object **/
public String toString()
{
return "{Text = '" + getText() + "', Line = " + getLineNo()
+ ", Column = " + getColumnNo() + "}";
}
}