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
This commit is contained in:
Mark Wielaard
2006-01-17 18:09:40 +00:00
parent bcb36c3e02
commit 2127637945
444 changed files with 75778 additions and 30731 deletions
@@ -78,6 +78,11 @@ public class Bindings
*/
final LinkedList withParameters;
/**
* Only search globals.
*/
boolean global;
Bindings(Stylesheet stylesheet)
{
this.stylesheet = stylesheet;
@@ -136,6 +141,12 @@ public class Bindings
public boolean containsKey(QName name, int type)
{
if (global)
{
Map ctx1 = (Map) variables.getLast();
Map ctx2 = (Map) parameters.getLast();
return (ctx1.containsKey(name) || ctx2.containsKey(name));
}
Iterator i = null;
switch (type)
{
@@ -165,6 +176,17 @@ public class Bindings
public Object get(QName name, Node context, int pos, int len)
{
if (global)
{
Map ctx = (Map) variables.getLast();
Object ret = ctx.get(name);
if (ret == null)
{
ctx = (Map) parameters.getLast();
ret = ctx.get(name);
}
return ret;
}
//System.err.println("bindings.get: "+name);
//System.err.println("\t"+toString());
Object ret = null;