Clover icon

Coverage Report

  1. Project Clover database Wed Nov 6 2024 14:47:21 GMT
  2. Package com.stevesoft.pat

File PushRule.java

 

Coverage histogram

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

Code metrics

0
7
6
1
50
30
6
0.86
1.17
6
1

Classes

Class Line # Actions
PushRule 16 7 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    /**
11    * See the example file
12    * <a href="http://javaregex.com/code/trans3.java.html">trans3.java</a> for
13    * further examples of how this is used. You will probably not want to call it
14    * directly.
15    */
 
16    public class PushRule extends SpecialRule
17    {
18    Regex NewRule;
19   
 
20  0 toggle public PushRule(PushRule p)
21    {
22  0 NewRule = p.NewRule;
23    }
24   
 
25  0 toggle public PushRule(String nm, Regex rr)
26    {
27  0 name = nm;
28  0 NewRule = rr;
29    }
30   
 
31  0 toggle public PushRule(String nm, Transformer tr)
32    {
33  0 name = nm;
34  0 NewRule = tr.rp;
35    }
36   
 
37  0 toggle public Object clone1()
38    {
39  0 return new PushRule(this);
40    }
41   
 
42  0 toggle public String String1()
43    {
44  0 return "${+" + name + "}";
45    }
46   
 
47  0 toggle public void apply(StringBufferLike sbl, RegRes rr)
48    {
49    }
50    }