Traverses the JSP AST nodes and populates the given SmapStratum with line mapping data. @param nodes the root JSP AST nodes @param s the stratum to populate with line mappings @param innerClassMap map to collect SMAP data for inner classes @param breakAtLF whether to generate a mapping for each line
(Node.Nodes nodes, SmapStratum s, HashMap<String,SmapStratum> innerClassMap,
boolean breakAtLF)
| 442 | * @param breakAtLF whether to generate a mapping for each line feed in template text |
| 443 | */ |
| 444 | public static void evaluateNodes(Node.Nodes nodes, SmapStratum s, HashMap<String,SmapStratum> innerClassMap, |
| 445 | boolean breakAtLF) { |
| 446 | try { |
| 447 | nodes.visit(new SmapGenVisitor(s, breakAtLF, innerClassMap)); |
| 448 | } catch (JasperException ex) { |
| 449 | // Ignore |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | private static class SmapGenVisitor extends Node.Visitor { |
| 454 |