org.richfaces.cdk.templatecompiler.el
Class ELVisitor

java.lang.Object
  extended by 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

Constructor Summary
ELVisitor()
           
 
Method Summary
 Type getExpressionType()
           
 java.lang.String getParsedExpression()
           
 java.util.Set<HelperMethod> getUsedHelperMethods()
           
 Type getVariable(java.lang.String name)
           
 java.util.Map<java.lang.String,Type> getVariables()
           
 void parse(java.lang.String expression, java.util.Map<java.lang.String,Type> contextMap, Type expectedType)
          Parse specified EL expression and return Java code, that represent this expression
 void setExpressionType(Type variableType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ELVisitor

public ELVisitor()
Method Detail

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 resolve
contextMap - - Map> - context for search classes.
Throws:
ParsingException - - if error occurred during parsing.


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.