KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > bytecode > MatchOffsetPair


1 /*
2     This library is free software; you can redistribute it and/or
3     modify it under the terms of the GNU General Public
4     License as published by the Free Software Foundation; either
5     version 2 of the license, or (at your option) any later version.
6 */

7
8 package org.gjt.jclasslib.bytecode;
9
10 /**
11     Holds a single match-offset pair.
12
13     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
14     @version $Revision: 1.2 $ $Date: 2003/08/18 07:58:54 $
15 */

16 public class MatchOffsetPair {
17
18     private int match;
19     private int offset;
20
21     /**
22      * Constructor.
23      * @param match the match value.
24      * @param offset the branch offset.
25      */

26     public MatchOffsetPair(int match, int offset) {
27         this.match = match;
28         this.offset = offset;
29     }
30
31     /**
32         Get the match value of this match-offset pair.
33         @return the value
34      */

35     public int getMatch() {
36         return match;
37     }
38
39     /**
40         Set the match value of this match-offset pair.
41         @param match the value
42      */

43     public void setMatch(int match) {
44         this.match = match;
45     }
46
47     /**
48         Get the offset of the branch for this match-offset pair.
49         @return the offset
50      */

51     public int getOffset() {
52         return offset;
53     }
54
55     /**
56         Set the offset of the branch for this match-offset pair.
57         @param offset the offset
58      */

59     public void setOffset(int offset) {
60         this.offset = offset;
61     }
62
63 }
64
Popular Tags