org.apache.cocoon.components.treeprocessor.variables
Class VariableExpressionTokenizer

java.lang.Object
  extended byorg.apache.cocoon.components.treeprocessor.variables.VariableExpressionTokenizer

public final class VariableExpressionTokenizer
extends Object

Parses "Text {module:{module:attribute}} more text {variable}" types of expressions. Supports escaping of braces with '\' character, and nested expressions.

Version:
$Id: VariableExpressionTokenizer.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Nested Class Summary
static interface VariableExpressionTokenizer.TokenReciever
          Callback for tokenizer
 
Constructor Summary
VariableExpressionTokenizer()
           
 
Method Summary
static void tokenize(String expression, VariableExpressionTokenizer.TokenReciever reciever)
          Tokenizes specified expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableExpressionTokenizer

public VariableExpressionTokenizer()
Method Detail

tokenize

public static void tokenize(String expression,
                            VariableExpressionTokenizer.TokenReciever reciever)
                     throws org.apache.cocoon.sitemap.PatternException
Tokenizes specified expression. Passes tokens to the reciever.

Throws:
org.apache.cocoon.sitemap.PatternException - if expression is not valid


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.