private void clearOutputAgumentValues() { ArgumentList allArgList = getArgumentList(); int allArgCnt = allArgList.size(); for (int n = 0; n < allArgCnt; n++) { Argument arg = allArgList.getArgument(n); if (arg.isOutDirection() == false) continue; arg.setValue(""); } }
/** @deprecated */ public void set(ArgumentList inArgList) { int nInArgs = inArgList.size(); for (int n = 0; n < nInArgs; n++) { Argument inArg = inArgList.getArgument(n); String inArgName = inArg.getName(); Argument arg = getArgument(inArgName); if (arg == null) continue; arg.setValue(inArg.getValue()); } }
void updateArgumentList(TreeNode parentNode, Action action) { ArgumentList argList = action.getArgumentList(); int nArguments = argList.size(); for (int n = 0; n < nArguments; n++) { Argument arg = argList.getArgument(n); String argName = arg.getName() + "(" + arg.getDirection() + ")"; TreeNode argNode = new TreeNode(argName); argNode.setUserData(arg); parentNode.add(argNode); } }
public Argument getArgument(String name) { ArgumentList argList = getArgumentList(); int nArgs = argList.size(); for (int n = 0; n < nArgs; n++) { Argument arg = argList.getArgument(n); String argName = arg.getName(); if (argName == null) continue; if (name.equals(argName) == true) return arg; } return null; }
public ArgumentList getOutputArgumentList() { ArgumentList allArgList = getArgumentList(); int allArgCnt = allArgList.size(); ArgumentList argList = new ArgumentList(); for (int n = 0; n < allArgCnt; n++) { Argument arg = allArgList.getArgument(n); if (arg.isOutDirection() == false) continue; argList.add(arg); } return argList; }
public void print() { Debug.message("Action : " + getName()); ArgumentList argList = getArgumentList(); int nArgs = argList.size(); for (int n = 0; n < nArgs; n++) { Argument arg = argList.getArgument(n); String name = arg.getName(); String value = arg.getValue(); String dir = arg.getDirection(); Debug.message(" [" + n + "] = " + dir + ", " + name + ", " + value); } }