40 |
import java.util.ArrayList; |
import java.util.ArrayList; |
41 |
import java.util.Collection; |
import java.util.Collection; |
42 |
import java.util.Collections; |
import java.util.Collections; |
43 |
|
import java.util.Iterator; |
44 |
import java.util.List; |
import java.util.List; |
45 |
import java.util.TreeSet; |
import java.util.TreeSet; |
46 |
import javax.xml.namespace.NamespaceContext; |
import javax.xml.namespace.NamespaceContext; |
47 |
|
import javax.xml.namespace.QName; |
48 |
import javax.xml.xpath.XPathFunction; |
import javax.xml.xpath.XPathFunction; |
49 |
import javax.xml.xpath.XPathFunctionException; |
import javax.xml.xpath.XPathFunctionException; |
50 |
import org.w3c.dom.Node; |
import org.w3c.dom.Node; |
173 |
return f; |
return f; |
174 |
} |
} |
175 |
|
|
176 |
|
public boolean references(QName var) |
177 |
|
{ |
178 |
|
for (Iterator i = args.iterator(); i.hasNext(); ) |
179 |
|
{ |
180 |
|
if (((Expr) i.next()).references(var)) |
181 |
|
{ |
182 |
|
return true; |
183 |
|
} |
184 |
|
} |
185 |
|
return false; |
186 |
|
} |
187 |
|
|
188 |
} |
} |
189 |
|
|