/** * Generate the code to create the ParameterValueSet, if necessary, when constructing the * activation. Also generate the code to call a method that will throw an exception if we try to * execute without all the parameters being set. * * @param acb The ActivationClassBuilder for the class we're building */ void generateParameterValueSet(ActivationClassBuilder acb) throws StandardException { Vector parameterList = getCompilerContext().getParameterList(); int numberOfParameters = (parameterList == null) ? 0 : parameterList.size(); if (numberOfParameters <= 0) return; ParameterNode.generateParameterValueSet(acb, numberOfParameters, parameterList); }
@Override public void setPosition(Point point) { super.setPosition(point); int count = 0; for (InputNode inputNode : this.inputNodes) { inputNode.setPosition(new Point(point.x + 5 + count * 5, point.y + 25 + count * 45)); ++count; } }