001: /* Soot - a J*va Optimization Framework
002: * Copyright (C) 2003 Jennifer Lhotak
003: *
004: * This library is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License as published by the Free Software Foundation; either
007: * version 2.1 of the License, or (at your option) any later version.
008: *
009: * This library is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public
015: * License along with this library; if not, write to the
016: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
017: * Boston, MA 02111-1307, USA.
018: */
019:
020: package ca.mcgill.sable.soot.attributes;
021:
022: public class LinkAttribute {
023:
024: private String label;
025: private int jimpleLink;
026: private int javaLink;
027:
028: private String className;
029: private String type;
030:
031: /**
032: * @return
033: */
034: public String getClassName() {
035: return className;
036: }
037:
038: /**
039: * @return
040: */
041: public String getLabel() {
042: return label;
043: }
044:
045: /**
046: * @return
047: */
048: public int getJimpleLink() {
049: return jimpleLink;
050: }
051:
052: /**
053: * @param string
054: */
055: public void setClassName(String string) {
056: className = string;
057: }
058:
059: /**
060: * @param string
061: */
062: public void setLabel(String string) {
063:
064: string = string.replaceAll("<", "<");
065: label = string.replaceAll(">", ">");
066: }
067:
068: /**
069: * @param string
070: */
071: public void setJimpleLink(int l) {
072: jimpleLink = l;
073: }
074:
075: /**
076: * @return
077: */
078: public int getJavaLink() {
079: return javaLink;
080: }
081:
082: /**
083: * @param i
084: */
085: public void setJavaLink(int i) {
086: javaLink = i;
087: }
088:
089: /**
090: * @return
091: */
092: public String getType() {
093: return type;
094: }
095:
096: /**
097: * @param string
098: */
099: public void setType(String string) {
100: type = string;
101: }
102:
103: }
|