Clover coverage report - Code Coverage for tapestry release 4.0-alpha-3
Coverage timestamp: Mon May 16 2005 09:05:49 EDT
file stats: LOC: 61   Methods: 4
NCLOC: 30   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
TemplateTokenFactory.java - 100% 100% 100%
coverage
 1   
 // Copyright 2004, 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.tapestry.parse;
 16   
 
 17   
 import java.util.Map;
 18   
 
 19   
 import org.apache.hivemind.Location;
 20   
 
 21   
 /**
 22   
  *  A Factory used by {@link org.apache.tapestry.parse.TemplateParser} to create 
 23   
  *  {@link org.apache.tapestry.parse.TemplateToken} objects.
 24   
  * 
 25   
  *  <p>
 26   
  *  This class is extended by Spindle - the Eclipse Plugin for Tapestry.
 27   
  *  <p>
 28   
  *  @author glongman@intelligentworks.com
 29   
  *  @since 3.0
 30   
  */
 31   
 public class TemplateTokenFactory
 32   
 {
 33  833
     public OpenToken createOpenToken(String tagName, String jwcId, String type, Location location)
 34   
     {
 35  833
         return new OpenToken(tagName, jwcId, type, location);
 36   
     }
 37   
 
 38  829
     public CloseToken createCloseToken(String tagName, Location location)
 39   
     {
 40  829
         return new CloseToken(tagName, location);
 41   
     }
 42   
 
 43  1338
     public TextToken createTextToken(
 44   
         char[] templateData,
 45   
         int blockStart,
 46   
         int end,
 47   
         Location templateLocation)
 48   
     {
 49  1338
         return new TextToken(templateData, blockStart, end, templateLocation);
 50   
     }
 51   
 
 52  15
     public LocalizationToken createLocalizationToken(
 53   
         String tagName,
 54   
         String localizationKey,
 55   
         boolean raw,
 56   
         Map attributes,
 57   
         Location startLocation)
 58   
     {
 59  15
         return new LocalizationToken(tagName, localizationKey, raw, attributes, startLocation);
 60   
     }
 61   
 }