Package org.apache.jasper.compiler
Class ELFunctionMapper.ELFunctionVisitor
- java.lang.Object
-
- org.apache.jasper.compiler.Node.Visitor
-
- org.apache.jasper.compiler.ELFunctionMapper.ELFunctionVisitor
-
- Enclosing class:
- ELFunctionMapper
class ELFunctionMapper.ELFunctionVisitor extends Node.Visitor
A visitor for the page. The places where EL is allowed are scanned for functions, and if found functions mappers are created.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.String,java.lang.String>gMapUse a global name map to facilitate reuse of function maps.
-
Constructor Summary
Constructors Constructor Description ELFunctionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddoMap(ELNode.Nodes el)Creates function mappers, if needed, from ELNodesprivate voiddoMap(Node.JspAttribute attr)private java.lang.StringgetMapName()private java.lang.StringmatchMap(java.util.ArrayList<ELNode.Function> functions)Find the name of the function mapper for an EL.voidvisit(Node.CustomTag n)voidvisit(Node.ELExpression n)voidvisit(Node.ForwardAction n)voidvisit(Node.IncludeAction n)voidvisit(Node.JspElement n)voidvisit(Node.ParamAction n)voidvisit(Node.PlugIn n)voidvisit(Node.SetProperty n)voidvisit(Node.UninterpretedTag n)voidvisit(Node.UseBean n)
-
-
-
Method Detail
-
visit
public void visit(Node.ParamAction n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.IncludeAction n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.ForwardAction n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.SetProperty n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.UseBean n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.PlugIn n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.JspElement n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.UninterpretedTag n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.CustomTag n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
public void visit(Node.ELExpression n) throws JasperException
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
doMap
private void doMap(Node.JspAttribute attr) throws JasperException
- Throws:
JasperException
-
doMap
private void doMap(ELNode.Nodes el) throws JasperException
Creates function mappers, if needed, from ELNodes- Throws:
JasperException
-
matchMap
private java.lang.String matchMap(java.util.ArrayList<ELNode.Function> functions)
Find the name of the function mapper for an EL. Reuse a previously generated one if possible.- Parameters:
functions- An ArrayList of ELNode.Function instances that represents the functions in an EL- Returns:
- A previous generated function mapper name that can be used by this EL; null if none found.
-
getMapName
private java.lang.String getMapName()
-
-