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
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
doMap
(ELNode.Nodes el) Creates function mappers, if needed, from ELNodesprivate void
doMap
(Node.JspAttribute attr) private String
private String
matchMap
(ArrayList<ELNode.Function> functions) Find the name of the function mapper for an EL.void
void
void
void
void
void
void
visit
(Node.PlugIn n) void
void
void
-
Field Details
-
gMap
Use a global name map to facilitate reuse of function maps. The key used is prefix:function:uri.
-
-
Constructor Details
-
ELFunctionVisitor
ELFunctionVisitor()
-
-
Method Details
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
doMap
- Throws:
JasperException
-
doMap
Creates function mappers, if needed, from ELNodes- Throws:
JasperException
-
matchMap
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
-