Coverage Report - org.webmacro.directive.DummyDirective
 
Classes in this File Line Coverage Branch Coverage Complexity
DummyDirective
0%
0/9
N/A
1
 
 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.directive;
 24  
 
 25  
 import org.webmacro.Context;
 26  
 import org.webmacro.FastWriter;
 27  
 import org.webmacro.PropertyException;
 28  
 import org.webmacro.TemplateVisitor;
 29  
 import org.webmacro.engine.BuildContext;
 30  
 import org.webmacro.engine.BuildException;
 31  
 
 32  
 import java.io.IOException;
 33  
 /**
 34  
  * A null directive implementation.
 35  
  */
 36  0
 public class DummyDirective extends Directive
 37  
 {
 38  
 
 39  
     private static final ArgDescriptor[]
 40  0
             myArgs = new ArgDescriptor[]{
 41  
             };
 42  
 
 43  
     private static final DirectiveDescriptor
 44  0
             myDescr = new DirectiveDescriptor("dummy", null, myArgs, null);
 45  
 
 46  
     public static DirectiveDescriptor getDescriptor ()
 47  
     {
 48  0
         return myDescr;
 49  
     }
 50  
 
 51  
     public Object build (DirectiveBuilder builder,
 52  
                          BuildContext bc)
 53  
             throws BuildException
 54  
     {
 55  0
         return null;
 56  
     }
 57  
 
 58  
     public void write (FastWriter out, Context context)
 59  
             throws PropertyException, IOException
 60  
     {
 61  0
     }
 62  
 
 63  
     public void accept (TemplateVisitor v)
 64  
     {
 65  0
         v.beginDirective(myDescr.name);
 66  0
         v.endDirective();
 67  0
     }
 68  
 
 69  
 }