com.google.sitebricks.compiler
Interface Token


public interface Token

Represents a compiled, evaluable expression or raw String token.

Author:
Dhanji R. Prasanna (dhanji@gmail.com)

Method Summary
 boolean isExpression()
           
 String render(Object bound)
           
 

Method Detail

isExpression

boolean isExpression()
Returns:
Returns true if this is an evaluable expression (usually with an embedded MVEL evaluator).

render

String render(Object bound)
Parameters:
bound - A context object to evaluate against (must matched the compiled context class of this expression token).
Returns:
Returns the result of evaluating the expression token against the provided context object. Values are converted to String using the TypeConverter.


Copyright © 2014. All rights reserved.