summaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/xml/transform/ElementAvailableFunction.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@gcc.gnu.org>2006-01-17 18:09:40 +0000
committerMark Wielaard <mark@gcc.gnu.org>2006-01-17 18:09:40 +0000
commit2127637945ea6b763966398130e0770fa993c860 (patch)
treec976ca91e3ef0bda3b34b37c0195145638d8d08e /libjava/classpath/gnu/xml/transform/ElementAvailableFunction.java
parentbcb36c3e02e3bd2843aad1b9888513dfb5d6e337 (diff)
downloadgcc-2127637945ea6b763966398130e0770fa993c860.tar.gz
Imported GNU Classpath 0.20
Imported GNU Classpath 0.20 * Makefile.am (AM_CPPFLAGS): Add classpath/include. * java/nio/charset/spi/CharsetProvider.java: New override file. * java/security/Security.java: Likewise. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r109831
Diffstat (limited to 'libjava/classpath/gnu/xml/transform/ElementAvailableFunction.java')
-rw-r--r--libjava/classpath/gnu/xml/transform/ElementAvailableFunction.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/libjava/classpath/gnu/xml/transform/ElementAvailableFunction.java b/libjava/classpath/gnu/xml/transform/ElementAvailableFunction.java
index 84cb6207af9..aa15981695e 100644
--- a/libjava/classpath/gnu/xml/transform/ElementAvailableFunction.java
+++ b/libjava/classpath/gnu/xml/transform/ElementAvailableFunction.java
@@ -144,8 +144,8 @@ class ElementAvailableFunction
{
return elements.contains(localName) ?
Boolean.TRUE : Boolean.FALSE;
- // TODO extension elements
}
+ // TODO extension elements
return Boolean.FALSE;
}
@@ -153,16 +153,12 @@ class ElementAvailableFunction
{
NamespaceContext n = nsctx;
if (context instanceof NamespaceContext)
- {
- n = (NamespaceContext) context;
- }
+ n = (NamespaceContext) context;
ElementAvailableFunction f = new ElementAvailableFunction(n);
int len = args.size();
List args2 = new ArrayList(len);
for (int i = 0; i < len; i++)
- {
- args2.add(((Expr) args.get(i)).clone(context));
- }
+ args2.add(((Expr) args.get(i)).clone(context));
f.setArguments(args2);
return f;
}
@@ -172,12 +168,15 @@ class ElementAvailableFunction
for (Iterator i = args.iterator(); i.hasNext(); )
{
if (((Expr) i.next()).references(var))
- {
- return true;
- }
+ return true;
}
return false;
}
+ public String toString()
+ {
+ return "element-available(" + args.get(0) + ")";
+ }
+
}