/** * Implements a phase of the translation that compiles (if necessary) the * tag files used in a JSP files. The directives in the tag files are * assumed to have been processed and encapsulated as TagFileInfo in the * CustomTag nodes. */ public void loadTagFiles(Compiler compiler, Node.Nodes page) throws JasperException { tempVector = new Vector<>(); page.visit(new TagFileLoaderVisitor(compiler)); }
/** * Implements a phase of the translation that compiles (if necessary) * the tag files used in a JSP files. The directives in the tag files * are assumed to have been proccessed and encapsulated as TagFileInfo * in the CustomTag nodes. */ public void loadTagFiles(Compiler compiler, Node.Nodes page) throws JasperException { tempVector = new ArrayList<Compiler>(); page.visit(new TagFileLoaderVisitor(compiler)); }
public void apply(Node.Nodes page, ErrorDispatcher err, PageInfo pageInfo) throws JasperException { init(err); if (!tagPlugins.isEmpty()) { page.visit(new NodeVisitor(this, pageInfo)); } }
public static void dump(Node.Nodes page) { try { page.visit(new DumpVisitor()); } catch (JasperException e) { e.printStackTrace(); } } }
private void evaluateNodes( Node.Nodes nodes, SmapStratum s, boolean breakAtLF) { try { nodes.visit(new SmapGenVisitor(s, breakAtLF, classInfos)); } catch (JasperException ex) { } }
/** * Visit the body of a node, using the current visitor */ protected void visitBody(Node n) throws JasperException { if (n.getBody() != null) { n.getBody().visit(this); } }
/** * Visit the body of a node, using the current visitor */ protected void visitBody(Node n) throws JasperException { if (n.getBody() != null) { n.getBody().visit(this); } }
public void visit(Node.CustomTag n) throws JasperException { Node.Nodes b = n.getBody(); if (b != null && !b.isGeneratedInBuffer()) { // Don't adjust lines for the nested tags that // are also generated in buffers, because the // adjustments will be done elsewhere. b.visit(this); } } });
public static void collect(Compiler compiler, Node.Nodes page) throws JasperException { CollectVisitor collectVisitor = new CollectVisitor(); page.visit(collectVisitor); collectVisitor.updatePageInfo(compiler.getPageInfo()); } }
public static void collect(Compiler compiler, Node.Nodes page) throws JasperException { CollectVisitor collectVisitor = new CollectVisitor(); page.visit(collectVisitor); collectVisitor.updatePageInfo(compiler.getPageInfo()); } }
public static void evaluateNodes( Node.Nodes nodes, SmapStratum s, HashMap<String, SmapStratum> innerClassMap, boolean breakAtLF) { try { nodes.visit(new SmapGenVisitor(s, breakAtLF, innerClassMap)); } catch (JasperException ex) { } }
public static void concatenate(Compiler compiler, Node.Nodes page) throws JasperException { TextCatVisitor v = new TextCatVisitor(compiler); page.visit(v); // Cleanup, in case the page ends with a template text v.collectText(); } }
@Override public void visit(Node.CustomTag n) throws JasperException { Node.Nodes b = n.getBody(); if (b != null && !b.isGeneratedInBuffer()) { // Don't adjust lines for the nested tags that // are also generated in buffers, because the // adjustments will be done elsewhere. b.visit(this); } } });
/** * Visit the body of a node, using the current visitor */ protected void visitBody(Node n) throws JasperException { if (n.getBody() != null) { n.getBody().visit(this); } }
public static void concatenate(Compiler compiler, Node.Nodes page) throws JasperException { TextCatVisitor v = new TextCatVisitor(compiler); page.visit(v); // Cleanup, in case the page ends with a template text v.collectText(); } }
public static void evaluateNodes( Node.Nodes nodes, SmapStratum s, HashMap<String, SmapStratum> innerClassMap, boolean breakAtLF) { try { nodes.visit(new SmapGenVisitor(s, breakAtLF, innerClassMap)); } catch (JasperException ex) { } }