Statistics
| Revision:

root / tmp / org.txm.groovy.core / src / groovy / org / txm / scripts / tokenizer / TTest.groovy @ 1000

History | View | Annotate | Download (791 Bytes)

1
package org.txm.scripts.tokenizer
2

    
3
public class TTest {
4
        def regex;
5
        def type = "w";
6
        def before=1, hit=2, after=3;
7
        public TTest(def regex, String type, int before, int hit, int after) {
8
                this.regex = regex
9
                this.type = type
10
                this.before = before
11
                this.hit = hit
12
                this.after = after
13
        }
14

    
15
        public TTest(def regex, int before, int hit, int after) {
16
                this.regex = regex
17
                this.before = before
18
                this.hit = hit
19
                this.after = after
20
        }
21

    
22
        public TTest(def regex, String type) {
23
                this.regex = regex
24
                this.type= type
25
        }
26

    
27
        public TTest(def regex) {
28
                this.regex = regex
29
        }
30

    
31
        /* (non-Javadoc)
32
         * @see java.lang.Object#toString()
33
         */
34
        @Override
35
        public String toString() {
36
                return "[regex=" + regex + ", type=" + type + ", before="+ before + ", hit=" + hit + ", after=" + after + "]";
37
        }
38
}
39