KickJava   Java API By Example, From Geeks To Geeks.

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


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 package ca.mcgill.sable.soot.attributes;
21
22 public class LinkAttribute {
23     
24     private String JavaDoc label;
25     private int jimpleLink;
26     private int javaLink;
27     
28     private String JavaDoc className;
29     private String JavaDoc type;
30     
31         
32     /**
33      * @return
34      */

35     public String JavaDoc getClassName() {
36         return className;
37     }
38
39     /**
40      * @return
41      */

42     public String JavaDoc getLabel() {
43         return label;
44     }
45
46     /**
47      * @return
48      */

49     public int getJimpleLink() {
50         return jimpleLink;
51     }
52
53     /**
54      * @param string
55      */

56     public void setClassName(String JavaDoc string) {
57         className = string;
58     }
59
60     /**
61      * @param string
62      */

63     public void setLabel(String JavaDoc string) {
64         
65         string = string.replaceAll("&lt;", "<");
66         label = string.replaceAll("&gt;", ">");
67     }
68
69     /**
70      * @param string
71      */

72     public void setJimpleLink(int l) {
73         jimpleLink = l;
74     }
75
76     /**
77      * @return
78      */

79     public int getJavaLink() {
80         return javaLink;
81     }
82
83     /**
84      * @param i
85      */

86     public void setJavaLink(int i) {
87         javaLink = i;
88     }
89
90     /**
91      * @return
92      */

93     public String JavaDoc getType() {
94         return type;
95     }
96
97     /**
98      * @param string
99      */

100     public void setType(String JavaDoc string) {
101         type = string;
102     }
103
104 }
105
Popular Tags