Okay, I could do it just by calling rule.start.getLine() and rule.start.getPositionInLine(). Sorry if this was a stupid question but I need to finish this project within a week from now and I'm a little nervous! :-P