ESC/Java2
© 2003,2004,2005 David Cok and Joseph Kiniry
© 2005 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

javafe.ast
Class Util

java.lang.Object
  extended byjavafe.ast.Util

public class Util
extends java.lang.Object

Various utility methods.


Constructor Summary
Util()
           
 
Method Summary
static int size(ASTNode n)
          Returns the size of the AST n.
static int size(ASTNode n, int limit)
          Returns the size of the AST n (see above), except returns -1 if the size exceeds limit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

size

public static int size(ASTNode n)
Returns the size of the AST n. The size includes the size of all children nodes, even children nodes that are null.


size

public static int size(ASTNode n,
                       int limit)
Returns the size of the AST n (see above), except returns -1 if the size exceeds limit.


ESC/Java2
© 2003,2004,2005 David Cok and Joseph Kiniry
© 2005 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

The ESC/Java2 Project Homepage