protected void dump(int depth) { String indent = ""; for (int count = 0; count < depth; count++) { indent += " "; } logger.trace(indent + "variable " + getName()); if (getBinding().size() == 0) { logger.trace(indent + " no binding"); } for (Binding binding : getBinding()) { binding.dump(depth+2); } } }
protected void dump(int depth) { String indent = ""; for (int count = 0; count < depth; count++) { indent += " "; } logger.trace(indent + "variable " + getName()); if (getBinding().size() == 0) { logger.trace(indent + " no binding"); } for (Binding binding : getBinding()) { binding.dump(depth+2); } } }
@Override public void checkVariables() { for (Variable variable : variables) { for (Binding binding : variable.getBinding()) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) { PipeNameBinding pipe = (PipeNameBinding) binding; String name = pipe.getStep(); boolean ancestor = false; Step step = this; while (step != null && !ancestor) { ancestor = name.equals(step.getName()); step = step.parent; } if (!ancestor) { logger.trace(MessageFormatter.nodeMessage(node, getName() + " variable depends on " + pipe.getStep())); addDependency(pipe.getStep()); } } } } }
@Override public void checkVariables() { for (Variable variable : variables) { for (Binding binding : variable.getBinding()) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) { PipeNameBinding pipe = (PipeNameBinding) binding; String name = pipe.getStep(); boolean ancestor = false; Step step = this; while (step != null && !ancestor) { ancestor = name.equals(step.getName()); step = step.parent; } if (!ancestor) { logger.trace(MessageFormatter.nodeMessage(node, getName() + " variable depends on " + pipe.getStep())); addDependency(pipe.getStep()); } } } } }