Applies tag plugin optimizations to the given page. @param page the page node tree @param err the error dispatcher @param pageInfo page information @throws JasperException if an error occurs during optimization
(Node.Nodes page, ErrorDispatcher err, PageInfo pageInfo)
| 60 | * @throws JasperException if an error occurs during optimization |
| 61 | */ |
| 62 | public void apply(Node.Nodes page, ErrorDispatcher err, PageInfo pageInfo) throws JasperException { |
| 63 | |
| 64 | if (!initialized) { |
| 65 | init(err); |
| 66 | } |
| 67 | if (!tagPlugins.isEmpty()) { |
| 68 | page.visit(new NodeVisitor(this, pageInfo)); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | private synchronized void init(ErrorDispatcher err) throws JasperException { |
| 73 | if (initialized) { |