@Override public String getCanonicalForm() { return target.getCanonicalForm() + "[" + keyExpression.getCanonicalForm() + "]"; }
@Override public String getCanonicalForm() { if (rho == null) { return lho.getCanonicalForm() + '!'; } return lho.getCanonicalForm() + '!' + rho.getCanonicalForm(); }
@Override public String getCanonicalForm() { String op = isMinus ? "-" : "+"; return op + target.getCanonicalForm(); }
@Override public String getCanonicalForm() { return target.getCanonicalForm() + "?" + key; }
@Override public String getCanonicalForm() { return left.getCanonicalForm() + " + " + right.getCanonicalForm(); }
@Override public String getCanonicalForm() { return left.getCanonicalForm() + ' ' + opString + ' ' + right.getCanonicalForm(); }
@Override public String getCanonicalForm() { return lho.getCanonicalForm() + " && " + rho.getCanonicalForm(); }
@Override public String getCanonicalForm() { return lho.getCanonicalForm() + ' ' + getOperatorSymbol(operator) + ' ' + rho.getCanonicalForm(); }
@Override public String getCanonicalForm() { String rhs = rho != null ? rho.getCanonicalForm() : ""; return lho.getCanonicalForm() + getNodeTypeSymbol() + rhs; }
@Override public String getCanonicalForm() { StringBuilder buf = new StringBuilder(); buf.append(target.getCanonicalForm()); buf.append("("); String list = arguments.getCanonicalForm(); buf.append(list.substring(1, list.length() - 1)); buf.append(")"); return buf.toString(); }
/** * Throw an exception if the expression passed in is a boolean Literal */ private void notBooleanLiteral(Expression exp, String expected) throws ParseException { if (exp instanceof BooleanLiteral) { throw new ParseException("Found: " + exp.getCanonicalForm() + ". Expecting " + expected, exp); } }
@Override protected String dump(boolean canonical) { StringBuilder sb = new StringBuilder(); if (canonical) sb.append('<'); sb.append(getNodeTypeSymbol()); if (exp != null) { sb.append(' '); sb.append(exp.getCanonicalForm()); } if (canonical) sb.append("/>"); return sb.toString(); }
/** * Throw an exception if the expression passed in is a Hash Literal */ private void notHashLiteral(Expression exp, String expected) throws ParseException { if (exp instanceof HashLiteral) { throw new ParseException( "Found hash literal: " + exp.getCanonicalForm() + ". Expecting " + expected, exp); } }
/** * Throw an exception if the expression passed in is a List Literal */ private void notListLiteral(Expression exp, String expected) throws ParseException { if (exp instanceof ListLiteral) { throw new ParseException( "Found list literal: " + exp.getCanonicalForm() + ". Expecting " + expected, exp); } }
@Override protected String dump(boolean canonical) { StringBuilder sb = new StringBuilder(); if (canonical) sb.append('<'); sb.append(getNodeTypeSymbol()); if (exp != null) { sb.append(' '); sb.append(exp.getCanonicalForm()); } if (canonical) sb.append("/>"); return sb.toString(); }
/** * Throw an exception if the expression passed in is a Number Literal */ private void notNumberLiteral(Expression exp, String expected) throws ParseException { if (exp instanceof NumberLiteral) { throw new ParseException( "Found number literal: " + exp.getCanonicalForm() + ". Expecting " + expected, exp); } }
@Override public String getCanonicalForm() { return exp.getCanonicalForm() + getNodeTypeSymbol(); }
@Override protected String dump(boolean canonical) { StringBuilder sb = new StringBuilder(); if (canonical) sb.append('<'); sb.append(getNodeTypeSymbol()); sb.append(' '); sb.append(_CoreStringUtils.toFTLTopLevelTragetIdentifier(key)); sb.append('='); sb.append(value.getCanonicalForm()); if (canonical) sb.append("/>"); return sb.toString(); }
@Override protected String dump(boolean canonical) { StringBuilder buf = new StringBuilder(); if (canonical) buf.append('<'); buf.append(getNodeTypeSymbol()); buf.append(' '); buf.append(importedTemplateNameExp.getCanonicalForm()); buf.append(" as "); buf.append(_CoreStringUtils.toFTLTopLevelTragetIdentifier(targetNsVarName)); if (canonical) buf.append("/>"); return buf.toString(); }
@Override protected String dump(boolean canonical) { if (canonical) { return "<" + getNodeTypeSymbol() + " \"" + paramExp.getCanonicalForm() + "\">" + getChildrenCanonicalForm() + "</" + getNodeTypeSymbol() + ">"; } else { return getNodeTypeSymbol(); } }