@Override public String toGroovy() { StringBuilder result = new StringBuilder("tools {\n"); for (Map.Entry<ModelASTKey, ModelASTValue> entry : tools.entrySet()) { result.append(entry.getKey().toGroovy()).append(' ').append(entry.getValue().toGroovy()).append('\n'); } result.append("}\n"); return result.toString(); }
@Override public String toGroovy() { StringBuilder result = new StringBuilder("environment {\n"); for (Map.Entry<ModelASTKey, ModelASTEnvironmentValue> entry : variables.entrySet()) { result.append(entry.getKey().toGroovy()).append(" = ").append(entry.getValue().toGroovy()).append('\n'); } result.append("}\n"); return result.toString(); }
@Override public String toGroovy() { StringBuilder result = new StringBuilder("tools {\n"); for (Map.Entry<ModelASTKey, ModelASTValue> entry : tools.entrySet()) { result.append(entry.getKey().toGroovy()).append(' ').append(entry.getValue().toGroovy()).append('\n'); } result.append("}\n"); return result.toString(); }
@Override public String toGroovy() { StringBuilder result = new StringBuilder("{\n"); for (Map.Entry<ModelASTKey, ModelASTMethodArg> entry : variables.entrySet()) { result.append(entry.getKey().toGroovy()).append(" ").append(entry.getValue().toGroovy()).append('\n'); } result.append("}\n"); return result.toString(); }
@Override public String toGroovy() { StringBuilder result = new StringBuilder("{\n"); for (Map.Entry<ModelASTKey, ModelASTMethodArg> entry : variables.entrySet()) { result.append(entry.getKey().toGroovy()).append(" ").append(entry.getValue().toGroovy()).append('\n'); } result.append("}\n"); return result.toString(); }
@Override public String toGroovy() { StringBuilder result = new StringBuilder("environment {\n"); for (Map.Entry<ModelASTKey, ModelASTEnvironmentValue> entry : variables.entrySet()) { result.append(entry.getKey().toGroovy()).append(" = ").append(entry.getValue().toGroovy()).append('\n'); } result.append("}\n"); return result.toString(); }
@Override public String toGroovy() { return key.toGroovy() + ": " + value.toGroovy(); }
@Override public String toGroovy() { StringBuilder result = new StringBuilder(); boolean first = true; for (Map.Entry<ModelASTKey, ModelASTValue> entry : arguments.entrySet()) { if (first) { first = false; } else { result.append(", "); } result.append(entry.getKey().toGroovy()).append(": ").append(entry.getValue().toGroovy()); } return result.toString(); }
@Override public String toGroovy() { return key.toGroovy() + ": " + value.toGroovy(); }
@Override public String toGroovy() { StringBuilder result = new StringBuilder(); boolean first = true; for (Map.Entry<ModelASTKey, ModelASTValue> entry : arguments.entrySet()) { if (first) { first = false; } else { result.append(", "); } result.append(entry.getKey().toGroovy()).append(": ").append(entry.getValue().toGroovy()); } return result.toString(); }
@Override public String toGroovy() { StringBuilder argStr = new StringBuilder(); if (variables == null || (variables instanceof ModelASTClosureMap && ((ModelASTClosureMap)variables).getVariables().isEmpty())) { argStr.append(agentType.toGroovy()); } else { argStr.append("{\n"); argStr.append(agentType.toGroovy()); argStr.append(" "); argStr.append(variables.toGroovy()); argStr.append("\n}"); } return "agent " + argStr.toString() + "\n"; }
@Override public String toGroovy() { StringBuilder argStr = new StringBuilder(); if (variables == null || (variables instanceof ModelASTClosureMap && ((ModelASTClosureMap)variables).getVariables().isEmpty())) { argStr.append(agentType.toGroovy()); } else { argStr.append("{\n"); argStr.append(agentType.toGroovy()); argStr.append(" "); argStr.append(variables.toGroovy()); argStr.append("\n}"); } return "agent " + argStr.toString() + "\n"; }