protected AbstractElement _predicatedElement(final RuleCall it) { AbstractElement _xifexpression = null; boolean _isPredicated = it.isPredicated(); if (_isPredicated) { _xifexpression = it; } else { AbstractRule _rule = it.getRule(); AbstractElement _alternatives = _rule.getAlternatives(); EList<AbstractElement> _elements = ((Group) _alternatives).getElements(); AbstractElement _head = IterableExtensions.<AbstractElement>head(_elements); _xifexpression = this.predicatedElement(_head); } return _xifexpression; }
protected boolean _predicated(final RuleCall it) { boolean _or = false; boolean _isPredicated = it.isPredicated(); if (_isPredicated) { _or = true; } else { boolean _xblockexpression = false; { AbstractRule _rule = it.getRule(); final AbstractElement group = _rule.getAlternatives(); boolean _xifexpression = false; if ((group instanceof Group)) { EList<AbstractElement> _elements = ((Group) group).getElements(); AbstractElement _head = IterableExtensions.<AbstractElement>head(_elements); _xifexpression = this.predicated(_head); } else { _xifexpression = false; } _xblockexpression = _xifexpression; } _or = _xblockexpression; } return _or; }