public DetachedRuleset handleDetachedRuleset(HiddenTokenAwareTree token) {
return new DetachedRuleset(token, handleGeneralBody(token.getChild(0)));
}
public Guard handleGuard(HiddenTokenAwareTree token) {
Guard result = new Guard(token);
Iterator<HiddenTokenAwareTree> iterator = token.getChildren().iterator();
result.addCondition(handleGuardCondition(iterator.next()));
while (iterator.hasNext()) {
validateGuardAnd(iterator.next());
result.addCondition(handleGuardCondition(iterator.next()));
}
return result;
}