summaryrefslogtreecommitdiff
path: root/gnu/xml/xpath/ConcatFunction.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/xml/xpath/ConcatFunction.java')
-rw-r--r--gnu/xml/xpath/ConcatFunction.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/gnu/xml/xpath/ConcatFunction.java b/gnu/xml/xpath/ConcatFunction.java
index 7c51f9d1c..fddd7ae25 100644
--- a/gnu/xml/xpath/ConcatFunction.java
+++ b/gnu/xml/xpath/ConcatFunction.java
@@ -15,8 +15,8 @@ General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
@@ -40,6 +40,7 @@ package gnu.xml.xpath;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import javax.xml.namespace.QName;
import org.w3c.dom.Node;
/**
@@ -81,6 +82,18 @@ final class ConcatFunction
return new ConcatFunction(args2);
}
+ public boolean references(QName var)
+ {
+ for (Iterator i = args.iterator(); i.hasNext(); )
+ {
+ if (((Expr) i.next()).references(var))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
public String toString()
{
StringBuffer buf = new StringBuffer("concat(");