KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > soot > jimple > toolkits > pointer > FullRWSet


1 /* Soot - a J*va Optimization Framework
2  * Copyright (C) 2003 Ondrej 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 soot.jimple.toolkits.pointer;
21 import java.util.*;
22 import soot.*;
23
24 public class FullRWSet extends RWSet {
25     public boolean getCallsNative() {
26     return true;
27     }
28     public boolean setCallsNative() {
29     throw new RuntimeException JavaDoc( "Unsupported" );
30     }
31
32     /** Returns an iterator over any globals read/written. */
33     public Set getGlobals() {
34     throw new RuntimeException JavaDoc( "Unsupported" );
35     }
36     public Set getFields() {
37     throw new RuntimeException JavaDoc( "Unsupported" );
38     }
39     public PointsToSet getBaseForField( Object JavaDoc f ) {
40     throw new RuntimeException JavaDoc( "Unsupported" );
41     }
42     public boolean hasNonEmptyIntersection( RWSet other ) {
43     if( other == null ) return false;
44     return true;
45     }
46     /** Adds the RWSet other into this set. */
47     public boolean union( RWSet other ) {
48     throw new RuntimeException JavaDoc( "Unsupported" );
49     }
50     public boolean addGlobal( SootField global ) {
51     throw new RuntimeException JavaDoc( "Unsupported" );
52     }
53     public boolean addFieldRef( PointsToSet otherBase, Object JavaDoc field ) {
54     throw new RuntimeException JavaDoc( "Unsupported" );
55     }
56     public boolean isEquivTo( RWSet other ) {
57     if( other instanceof FullRWSet ) return true;
58     return false;
59     }
60 }
61
Popular Tags