1 salcianu 1.1.2.1 // PAEdgeVisitor.java, created Sun Feb 6 20:44:07 2000 by salcianu 2 cananian 1.1.2.4 // Copyright (C) 2000 Alexandru SALCIANU <salcianu@retezat.lcs.mit.edu> 3 salcianu 1.1.2.1 // Licensed under the terms of the GNU GPL; see COPYING for details. 4 salcianu 1.1.2.1 package harpoon.Analysis.PointerAnalysis; 5 salcianu 1.1.2.1 6 salcianu 1.1.2.1 import harpoon.Temp.Temp; 7 salcianu 1.1.2.1 8 salcianu 1.1.2.1 /** 9 salcianu 1.1.2.2 * <code>PAEdgeVisitor</code> is a wrapper for the functions that are 10 salcianu 1.1.2.2 called on an edge of the form <code><var,node></code> or 11 salcianu 1.1.2.2 <code><node1,f,node2></code>. 12 salcianu 1.1.2.2 There is no other way to pass a function in Java (no pointers to methods ...) 13 salcianu 1.1.2.1 * 14 cananian 1.1.2.4 * @author Alexandru SALCIANU <salcianu@retezat.lcs.mit.edu> 15 cananian 1.2 * @version $Id: PAEdgeVisitor.java,v 1.2 2002/02/25 20:58:40 cananian Exp $ 16 salcianu 1.1.2.1 */ 17 salcianu 1.1.2.1 interface PAEdgeVisitor { 18 salcianu 1.1.2.2 /** Visits a <code><var,node></code> edge. */ 19 salcianu 1.1.2.3 public void visit(Temp var, PANode node); 20 salcianu 1.1.2.2 /** Visits a <code><node1,f,node2></code> edge. */ 21 salcianu 1.1.2.1 public void visit(PANode node1, String f, PANode node2); 22 cananian 1.2 }