freemarker.template.expression
Interface Variable

All Superinterfaces:
Expression, ExpressionElement
All Known Implementing Classes:
MethodCall, DynamicKeyName, Identifier, Dot

public interface Variable
extends Expression

An interface for expressions that get their values from the data model.

Version:
$Id: Variable.java,v 1.12 2003/11/03 03:33:32 run2000 Exp $

Method Summary
 java.lang.String getName(TemplateModelRoot modelRoot)
          Retrieve the name of this portion of the variable.
 
Methods inherited from interface freemarker.template.expression.Expression
getAsTemplateModel, getType, isComplete
 

Method Detail

getName

public java.lang.String getName(TemplateModelRoot modelRoot)
                         throws TemplateException
Retrieve the name of this portion of the variable.
Parameters:
modelRoot - the model to be used in cases where the variable is the result of an Expression.
Throws:
TemplateException - the name could not be determined