public final class ELVisitor extends Object implements TypedTemplateStatement
FIELDS_TRANSFORM, METHODS_TRANSFORMIMPORTS_TRANSFORM| Constructor and Description |
|---|
ELVisitor(Logger log,
TypesFactory typesFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHelperMethods(HelperMethod helper) |
String |
coerceToType(String valueString,
ELType expectedType) |
ITreeNode |
determineNodeType(org.jboss.el.parser.Node child)
This method determine type of parsed node and create wrapper for them, that extends AbstractTreeNode.
|
String |
getCode() |
ELType |
getMatchingVisibleMethodReturnType(String methodName,
ELType[] parameterTypes) |
ELPropertyDescriptor |
getPropertyDescriptor(String propertyName) |
Iterable<JavaField> |
getRequiredFields() |
Iterable<JavaImport> |
getRequiredImports() |
Iterable<HelperMethod> |
getRequiredMethods() |
ELType |
getType() |
ELType |
getVariable(String name) |
boolean |
isLiteral()
|
boolean |
isMixedExpression() |
void |
parse(String expression,
Variables contextVariables,
ELType expectedType)
Parse specified EL expression and return Java code, that represent this expression
|
void |
setExpressionType(ELType variableType) |
void |
setLiteral(boolean literal)
|
void |
setParent(StatementsContainer parent) |
public ELVisitor(Logger log, TypesFactory typesFactory)
public boolean isMixedExpression()
public boolean isLiteral()
isLiteral in interface TypedTemplateStatementpublic void setLiteral(boolean literal)
literal - the literal to setpublic ELType getType()
getType in interface TypedTemplateStatementpublic void setExpressionType(ELType variableType)
public ELType getVariable(String name) throws ParsingException
ParsingExceptionpublic void parse(String expression, Variables contextVariables, ELType expectedType) throws ParsingException
expression - - expression to resolvecontextMap - - MapParsingException - - if error occurred during parsing.public String getCode()
getCode in interface JavaStatementpublic Iterable<JavaImport> getRequiredImports()
getRequiredImports in interface RequireImportspublic Iterable<JavaField> getRequiredFields()
getRequiredFields in interface TemplateStatementpublic Iterable<HelperMethod> getRequiredMethods()
getRequiredMethods in interface TemplateStatementpublic ELType getMatchingVisibleMethodReturnType(String methodName, ELType[] parameterTypes) throws ParsingException
ParsingExceptionpublic ELPropertyDescriptor getPropertyDescriptor(String propertyName) throws ParsingException
ParsingExceptionpublic void addHelperMethods(HelperMethod helper)
public ITreeNode determineNodeType(org.jboss.el.parser.Node child) throws ParsingException
child - - parsed nodeParsingException - - if node type is not recognized.public void setParent(StatementsContainer parent)
setParent in interface TemplateStatementCopyright © 2014 JBoss by Red Hat. All Rights Reserved.