diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/MyCommonAST.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/MyCommonAST.java index 503751ffc..4eb6370ca 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/MyCommonAST.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/MyCommonAST.java @@ -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() + "}"; + } }