##### Coverage Report - org.webmacro.TemplateVisitor

Classes in this File | Line Coverage | Branch Coverage | Complexity
TemplateVisitor |
0% | 0/15
0% | 0/2
| 1.0909090909090908;1.091

1 |  |
     /*
2 |  |
      * Copyright (C) 1998-2000 Semiotek Inc.  All Rights Reserved.
3 |  |
      *
4 |  |
      * Redistribution and use in source and binary forms, with or without
5 |  |
      * modification, are permitted under the terms of either of the following
6 |  |
      * Open Source licenses:
7 |  |
      *
8 |  |
      * The GNU General Public License, version 2, or any later version, as
9 |  |
      * published by the Free Software Foundation
10 |  |
      * (http://www.fsf.org/copyleft/gpl.html);
11 |  |
      *
12 |  |
      *  or
13 |  |
      *
14 |  |
      * The Semiotek Public License (http://webmacro.org/LICENSE.)
15 |  |
      *
16 |  |
      * This software is provided "as is", with NO WARRANTY, not even the
17 |  |
      * implied warranties of fitness to purpose, or merchantability. You
18 |  |
      * assume all risks and liabilities associated with its use.
19 |  |
      *
20 |  |
      * See www.webmacro.org for more information on the WebMacro project.
21 |  |
      */
22 |  |
23 |  |
     package org.webmacro;
24 |  |
25 |  |
     import org.webmacro.engine.Variable;
26 |  |
27 |  |
     /**
28 |  |
      *
29 |  |
      * @author Marcel Huijkman
30 |  |
      *
31 |  |
      * @version        27-07-2002
32 |  |
      */
33 | 0 |
     public abstract class TemplateVisitor
34 |  |
     {
35 |  |
36 |  |
         public void beginBlock ()
37 |  |
         {
38 | 0 |
         }
39 |  |
40 |  |
         public void endBlock ()
41 |  |
         {
42 | 0 |
         }
43 |  |
44 |  |
         public void beginDirective (String directiveName)
45 |  |
         {
46 | 0 |
         }
47 |  |
48 |  |
         public void visitDirectiveArg (String argName, Object o)
49 |  |
         {
50 | 0 |
         }
51 |  |
52 |  |
         public void endDirective ()
53 |  |
         {
54 | 0 |
         }
55 |  |
56 |  |
         public void visitString (String s)
57 |  |
         {
58 | 0 |
         }
59 |  |
60 |  |
         public void visitBinaryOperation (String opType, Object l, Object r)
61 |  |
         {
62 | 0 |
         }
63 |  |
64 |  |
         public void visitUnaryOperation (String opType, Object o)
65 |  |
         {
66 | 0 |
         }
67 |  |
68 |  |
         public void visitVariable (Variable v, Object[] names)
69 |  |
         {
70 | 0 |
         }
71 |  |
72 |  |
         public void visitUnknownMacro (String macroClass, Macro m)
73 |  |
         {
74 | 0 |
         }
75 |  |
76 |  |
         public final void visitMacro (Macro m)
77 |  |
         {
78 | 0 |
             if (m instanceof Visitable)
79 |  |
             {
80 | 0 |
                 ((Visitable) m).accept(this);
81 |  |
             }
82 |  |
             else
83 |  |
             {
84 | 0 |
                 visitUnknownMacro(m.getClass().getName(), m);
85 |  |
             }
86 | 0 |
         }
87 |  |
     }