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