KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ca > mcgill > sable > soot > attributes > ValueBoxAttribute


1 /* Soot - a J*va Optimization Framework
2  * Copyright (C) 2003 Jennifer Lhotak
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */

19
20
21 package ca.mcgill.sable.soot.attributes;
22
23 import org.eclipse.swt.graphics.RGB;
24
25
26 public class ValueBoxAttribute {
27
28     private int startOffset;
29     private int endOffset;
30     private int javaOffsetStart;
31     private int javaOffsetEnd;
32     
33     private int red;
34     private int green;
35     private int blue;
36     
37     public RGB getRGBColor(){
38         return new RGB(getRed(), getGreen(), getBlue());
39     }
40     
41     /**
42      * @return
43      */

44     public int getBlue() {
45         return blue;
46     }
47
48     /**
49      * @return
50      */

51     public int getEndOffset() {
52         return endOffset;
53     }
54
55     /**
56      * @return
57      */

58     public int getGreen() {
59         return green;
60     }
61
62     /**
63      * @return
64      */

65     public int getRed() {
66         return red;
67     }
68
69     /**
70      * @return
71      */

72     public int getStartOffset() {
73         return startOffset;
74     }
75
76     /**
77      * @param i
78      */

79     public void setBlue(int i) {
80         blue = i;
81     }
82
83     /**
84      * @param i
85      */

86     public void setEndOffset(int i) {
87         endOffset = i;
88     }
89
90     /**
91      * @param i
92      */

93     public void setGreen(int i) {
94         green = i;
95     }
96
97     /**
98      * @param i
99      */

100     public void setRed(int i) {
101         red = i;
102     }
103
104     /**
105      * @param i
106      */

107     public void setStartOffset(int i) {
108         startOffset = i;
109     }
110
111     /**
112      * @return
113      */

114     public int getJavaOffsetEnd() {
115         return javaOffsetEnd;
116     }
117
118     /**
119      * @return
120      */

121     public int getJavaOffsetStart() {
122         return javaOffsetStart;
123     }
124
125     /**
126      * @param i
127      */

128     public void setJavaOffsetEnd(int i) {
129         javaOffsetEnd = i;
130     }
131
132     /**
133      * @param i
134      */

135     public void setJavaOffsetStart(int i) {
136         javaOffsetStart = i;
137     }
138
139 }
140
Popular Tags