@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("break"); if (breakLabel != null) { sb.append(" "); sb.append(breakLabel.toSource(0)); } sb.append(";\n"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("continue"); if (label != null) { sb.append(" "); sb.append(label.toSource(0)); } sb.append(";\n"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("continue"); if (label != null) { sb.append(" "); sb.append(label.toSource(0)); } sb.append(";\n"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("break"); if (breakLabel != null) { sb.append(" "); sb.append(breakLabel.toSource(0)); } sb.append(";\n"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("break"); if (breakLabel != null) { sb.append(" "); sb.append(breakLabel.toSource(0)); } sb.append(";\n"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("continue"); if (label != null) { sb.append(" "); sb.append(label.toSource(0)); } sb.append(";\n"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("break"); if (breakLabel != null) { sb.append(" "); sb.append(breakLabel.toSource(0)); } sb.append(";\n"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("continue"); if (label != null) { sb.append(" "); sb.append(label.toSource(0)); } sb.append(";\n"); return sb.toString(); }
public boolean visit(AstNode node) { if (node instanceof FunctionCall) { FunctionCall call = (FunctionCall) node; node = call.getTarget(); if (node instanceof Name) { Name name = (Name) node; if (funcName.equals(name.toSource())) { target.set(call); return false; } } } return true; } });
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("catch ("); sb.append(varName.toSource(0)); if (catchCondition != null) { sb.append(" if "); sb.append(catchCondition.toSource(0)); } sb.append(") "); sb.append(body.toSource(0)); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("catch ("); sb.append(varName.toSource(0)); if (catchCondition != null) { sb.append(" if "); sb.append(catchCondition.toSource(0)); } sb.append(") "); sb.append(body.toSource(0)); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("catch ("); sb.append(varName.toSource(0)); if (catchCondition != null) { sb.append(" if "); sb.append(catchCondition.toSource(0)); } sb.append(") "); sb.append(body.toSource(0)); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); if (isAttributeAccess()) { sb.append("@"); } if (namespace != null) { sb.append(namespace.toSource(0)); sb.append("::"); } sb.append("["); sb.append(indexExpr.toSource(0)); sb.append("]"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); sb.append("catch ("); sb.append(varName.toSource(0)); if (catchCondition != null) { sb.append(" if "); sb.append(catchCondition.toSource(0)); } sb.append(") "); sb.append(body.toSource(0)); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); if (isAttributeAccess()) { sb.append("@"); } if (namespace != null) { sb.append(namespace.toSource(0)); sb.append("::"); } sb.append("["); sb.append(indexExpr.toSource(0)); sb.append("]"); return sb.toString(); }
@Override public String toSource(int depth) { StringBuilder sb = new StringBuilder(); sb.append(makeIndent(depth)); if (isAttributeAccess()) { sb.append("@"); } if (namespace != null) { sb.append(namespace.toSource(0)); sb.append("::"); } sb.append("["); sb.append(indexExpr.toSource(0)); sb.append("]"); return sb.toString(); }