Imported GNU Classpath 0.90

Imported GNU Classpath 0.90
       * scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
       * gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
       * java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
       * java/lang/Math.java: New override file.
       * java/lang/Character.java: Merged from Classpath.
       (start, end): Now 'int's.
       (canonicalName): New field.
       (CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
       (UnicodeBlock): Added argument.
       (of): New overload.
       (forName): New method.
       Updated unicode blocks.
       (sets): Updated.
       * sources.am: Regenerated.
       * Makefile.in: Likewise.

From-SVN: r111942
This commit is contained in:
Mark Wielaard 2006-03-10 21:46:48 +00:00
parent 27079765d0
commit 8aa540d2f7
1367 changed files with 188789 additions and 22762 deletions

View file

@ -64,9 +64,7 @@ abstract class TemplateNode
throws TransformerException
{
if (stylesheet.terminated)
{
return;
}
return;
if (Thread.currentThread().isInterrupted())
{
// Try to head off any infinite loops at the pass
@ -91,13 +89,9 @@ abstract class TemplateNode
public boolean references(QName var)
{
if (children != null && children.references(var))
{
return true;
}
return true;
if (next != null && next.references(var))
{
return true;
}
return true;
return false;
}
@ -107,18 +101,30 @@ abstract class TemplateNode
void list(int depth, PrintStream out, boolean listNext)
{
for (int i = 0; i < depth; i++)
{
out.print(" ");
}
out.print(" ");
out.println(toString());
if (children != null)
{
children.list(depth + 1, out, true);
}
children.list(depth + 1, out, true);
if (listNext && next != null)
next.list(depth, out, listNext);
}
/**
* Indicates whether the template for which this template node is the
* first node specifies the given parameter.
*/
boolean hasParam(QName name)
{
for (TemplateNode ctx = this; ctx != null; ctx = ctx.next)
{
next.list(depth, out, listNext);
if (ctx instanceof ParameterNode)
{
ParameterNode param = (ParameterNode) ctx;
if (param.type == Bindings.PARAM && param.name.equals(name))
return true;
}
}
return false;
}
}