org.richfaces.cdk.templatecompiler.el
Class ELVisitor
java.lang.Object
org.richfaces.cdk.templatecompiler.el.ELVisitor
public final class ELVisitor
- extends java.lang.Object
Entry point for parsing EL expressions. @see parse() method.
- Author:
- amarkhel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELVisitor
public ELVisitor()
getExpressionType
public Type getExpressionType()
setExpressionType
public void setExpressionType(Type variableType)
getVariables
public java.util.Map<java.lang.String,Type> getVariables()
- Returns:
- the variables
getVariable
public Type getVariable(java.lang.String name)
throws ParsingException
- Throws:
ParsingException
getUsedHelperMethods
public java.util.Set<HelperMethod> getUsedHelperMethods()
- Returns:
- the uses
getParsedExpression
public java.lang.String getParsedExpression()
- Returns:
- the parsedExpression
parse
public void parse(java.lang.String expression,
java.util.Map<java.lang.String,Type> contextMap,
Type expectedType)
throws ParsingException
- Parse specified EL expression and return Java code, that represent this expression
- Parameters:
expression - - expression to resolvecontextMap - - Map> - context for search classes.
- Throws:
ParsingException - - if error occurred during parsing.
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.