protected boolean isDefined() {
return this.ruleModel.lhs.length > 0;
}
private List<IPattern> cloneDefinition(List<IPattern> definition) {
RuleModelCloneVisitor visitor = new RuleModelCloneVisitor();
RuleModel rm = new RuleModel();
for ( IPattern pattern : definition ) {
rm.addLhsItem( pattern );
}
RuleModel rmClone = visitor.visitRuleModel( rm );
List<IPattern> clone = new ArrayList<IPattern>();
for ( IPattern pattern : rmClone.lhs ) {
clone.add( pattern );
}
return clone;