private void addCallMethod(String itemText, int position) { this.model.addRhsItem(new ActionCallMethod(itemText), position); }
private void addCallMethod(String itemText, int position) { this.model.addRhsItem(new ActionCallMethod(itemText), position); }
public ActionCallMethod get(String variable, String methodName, String[] parameters) { this.variable = variable; this.methodName = methodName; this.parameters = parameters; ActionCallMethod actionCallMethod = new ActionCallMethod(); actionCallMethod.setMethodName(methodName); actionCallMethod.setVariable(variable); actionCallMethod.setState(ActionCallMethod.TYPE_DEFINED); for (ActionFieldFunction parameter : getActionFieldFunctions()) { actionCallMethod.addFieldValue(parameter); } return actionCallMethod; }
private ActionCallMethod visitActionCallMethod(ActionCallMethod acm) { ActionCallMethod clone = new ActionCallMethod(); clone.setVariable(acm.getVariable()); clone.setState(acm.getState()); clone.setMethodName(acm.getMethodName()); for (ActionFieldValue aff : acm.getFieldValues()) { clone.addFieldValue(cloneActionFieldFunction((ActionFieldFunction) aff)); } return clone; }
private ActionCallMethod visitActionCallMethod(ActionCallMethod acm) { ActionCallMethod clone = new ActionCallMethod(); clone.setVariable(acm.getVariable()); clone.setState(acm.getState()); clone.setMethodName(acm.getMethodName()); for (ActionFieldValue aff : acm.getFieldValues()) { clone.addFieldValue(cloneActionFieldFunction((ActionFieldFunction) aff)); } return clone; }
private BRLActionColumn actionCallMethod(final String boundName) { final ActionCallMethod action = new ActionCallMethod(); action.setVariable(boundName); action.setMethodName("toString()"); final BRLActionColumn brl = new BRLActionColumn(); brl.setHeader("brl-action"); brl.setDefinition(Collections.singletonList(action)); brl.getChildColumns().add(new BRLActionVariableColumn() {{ setHeader("brl-action-v0"); }}); return brl; }
private ActionSetField clone(final ActionSetField action) { if (action instanceof ActionUpdateField) { final ActionUpdateField auf = (ActionUpdateField) action; final ActionUpdateField clone = new ActionUpdateField(auf.getVariable()); clone.setFieldValues(auf.getFieldValues()); return clone; } else if (action instanceof ActionCallMethod) { final ActionCallMethod acm = (ActionCallMethod) action; final ActionCallMethod clone = new ActionCallMethod(acm.getVariable()); clone.setState(acm.getState()); clone.setMethodName(acm.getMethodName()); clone.setFieldValues(acm.getFieldValues()); return clone; } else if (action instanceof ActionSetField) { final ActionSetField clone = new ActionSetField(action.getVariable()); clone.setFieldValues(action.getFieldValues()); return clone; } else { return action; } } }
model.addRhsItem( arf ); ActionCallMethod callMethod1 = new ActionCallMethod(); callMethod1.setVariable( "var1" ); callMethod1.setMethodName( "testMethod1 " ); model.addRhsItem( callMethod1 ); ActionCallMethod callMethod2 = new ActionCallMethod(); callMethod2.setVariable( "var2" ); callMethod2.setMethodName( "testMethod2 " );