Clover icon

Coverage Report

  1. Project Clover database Thu Nov 7 2024 13:01:17 GMT
  2. Package com.stevesoft.pat

File RuleHolder.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
59% of files have more coverage

Code metrics

0
5
6
1
43
28
6
1.2
0.83
6
1

Classes

Class Line # Actions
RuleHolder 11 5 6
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    //
2    // This software is now distributed according to
3    // the Lesser Gnu Public License. Please see
4    // http://www.gnu.org/copyleft/lesser.txt for
5    // the details.
6    // -- Happy Computing!
7    //
8    package com.stevesoft.pat;
9   
10    /** This class is used internally. */
 
11    class RuleHolder extends ReplaceRule
12    {
13    ReplaceRule held = null;
14   
 
15  0 toggle RuleHolder()
16    {
17    }
18   
 
19  0 toggle RuleHolder(ReplaceRule h)
20    {
21  0 held = h;
22    }
23   
 
24  0 toggle public Object clone1()
25    {
26  0 return new RuleHolder(held);
27    }
28   
 
29  0 toggle public String toString1()
30    {
31  0 return held.toString1();
32    }
33   
 
34  0 toggle public void apply(StringBufferLike sb, RegRes rr)
35    {
36  0 held.apply(sb, rr);
37    }
38   
 
39  0 toggle public ReplaceRule arg(String s)
40    {
41  0 return new RuleHolder(held.arg(s));
42    }
43    }