use of org.applause.lang.applauseDsl.UIActionSpecification in project applause by applause.
the class DefaultListScreenActionCompiler method compileActionMethod.
private CharSequence compileActionMethod(final UIAction it) {
CharSequence _xifexpression = null;
UIActionSpecification _action = it.getAction();
if ((_action instanceof UIActionNavigateAction)) {
CharSequence _switchResult = null;
UIActionSpecification _action_1 = it.getAction();
ActionVerb _actionVerb = ((UIActionNavigateAction) _action_1).getActionVerb();
final ActionVerb _switchValue = _actionVerb;
boolean _matched = false;
if (!_matched) {
if (Objects.equal(_switchValue, ActionVerb.ADD)) {
_matched = true;
Screen _screen = this._defaultListScreenClassExtensions.screen(it);
CharSequence _compileActionMethod_AddItem = this.compileActionMethod_AddItem(_screen);
_switchResult = _compileActionMethod_AddItem;
}
}
if (!_matched) {
if (Objects.equal(_switchValue, ActionVerb.EDIT)) {
_matched = true;
Screen _screen_1 = this._defaultListScreenClassExtensions.screen(it);
CharSequence _compileActionMethod_EditItem = this.compileActionMethod_EditItem(_screen_1);
_switchResult = _compileActionMethod_EditItem;
}
}
_xifexpression = _switchResult;
}
return _xifexpression;
}
Aggregations