Changeset 1003


Ignore:
Timestamp:
2008-12-30 09:47:51 (4 years ago)
Author:
bruno
Message:

spell check: litteral -> literal

Location:
trunk/universe/kauri-template/src/main/java/org/kauriproject/template/el
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/universe/kauri-template/src/main/java/org/kauriproject/template/el/ELFacade.java

    r999 r1003  
    5656        int brace = expression.indexOf('{', start); 
    5757        if (start < 0 || brace < 0) { 
    58             // not a valid expression: parse as litteral 
    59             cex.add(new LitteralExpression(sanitize(expression), expectedType)); 
     58            // not a valid expression: parse as literal 
     59            cex.add(new LiteralExpression(sanitize(expression), expectedType)); 
    6060        } else { 
    6161            String id = null; 
    6262            if (start > 0) { 
    63                 cex.add(new LitteralExpression(sanitize(expression.substring(0, start)), expectedType)); 
     63                cex.add(new LiteralExpression(sanitize(expression.substring(0, start)), expectedType)); 
    6464            } 
    6565            id = expression.substring(start + 1, brace); 
    6666            int end = getEndPosition(expression, brace + 1); 
    6767            if (id.length() > Expression.ID_MAX_LENGTH || id.contains(" ") || end < 0) { 
    68                 // not a valid expression, parse start as litteral 
    69                 cex.add(new LitteralExpression(expression.substring(start, start + 1), expectedType)); 
     68                // not a valid expression, parse start as literal 
     69                cex.add(new LiteralExpression(expression.substring(start, start + 1), expectedType)); 
    7070                // try to parse rest of the expression 
    7171                parseExpression(expression.substring(start + 1), expectedType, cex); 
     
    8181                } else { 
    8282                    log.warn("expression type '" + id + "' not supported"); 
    83                     cex.add(new LitteralExpression(sanitize(expression.substring(start, end + 1)), 
     83                    cex.add(new LiteralExpression(sanitize(expression.substring(start, end + 1)), 
    8484                            expectedType)); 
    8585                } 
     
    130130     * Remove escape characters. 
    131131     */ 
    132     private String sanitize(String litteral) { 
    133         return litteral.replaceAll("\\\\([$#])", "$1"); 
     132    private String sanitize(String literal) { 
     133        return literal.replaceAll("\\\\([$#])", "$1"); 
    134134    } 
    135135 
  • trunk/universe/kauri-template/src/main/java/org/kauriproject/template/el/LiteralExpression.java

    r1001 r1003  
    1919 
    2020/** 
    21  * Implementation of a litteral expression. 
     21 * Implementation of a literal expression. 
    2222 */ 
    23 public class LitteralExpression implements Expression { 
     23public class LiteralExpression implements Expression { 
    2424 
    2525    private Object expression; 
    2626 
    27     public LitteralExpression(String expression, Class<?> expectedType) { 
     27    public LiteralExpression(String expression, Class<?> expectedType) { 
    2828        if (expectedType.equals(Boolean.class)) { 
    2929            this.expression = Boolean.parseBoolean(expression); 
Note: See TracChangeset for help on using the changeset viewer.