public RuleName ruleName(){
  String labelStr=toString();
  int colonLocation=labelStr.lastIndexOf(':');
  int ruleNameStart=colonLocation + 1;
  String ruleNameStr=labelStr.substring(ruleNameStart);
  return RuleName.create(ruleNameStr);
}

public RuleName ruleName ( ) { String labelStr = toString ( ) ; int colonLocation = labelStr . lastIndexOf ( ':' ) ; int ruleNameStart = colonLocation + 1 ; String ruleNameStr = labelStr . substring ( ruleNameStart ) ; return RuleName . create ( ruleNameStr ) ; }
extract the rule name from a label . the rule name follows a colon at the end of the label .
