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; }
callMethod1.setVariable( "var1" ); callMethod1.setMethodName( "testMethod1 " ); callMethod1.setState( ActionCallMethod.TYPE_DEFINED ); callMethod2.setVariable( "var2" ); callMethod2.setMethodName( "testMethod2 " ); callMethod2.setState( ActionCallMethod.TYPE_UNDEFINED );