biz.hammurapi.antlr
Class AstUtil

java.lang.Object
  extended by biz.hammurapi.antlr.AstUtil

public class AstUtil
extends java.lang.Object

Serializes AST to DOM

Author:
Pavel Vlasov

Constructor Summary
AstUtil()
           
 
Method Summary
static void dump(antlr.collections.AST node, java.lang.String[] tokenNames)
          Dumps this node and its children
static void dumpAll(antlr.collections.AST node, java.lang.String[] tokenNames)
          Dumps node and siblings
static org.w3c.dom.Element toDom(antlr.collections.AST node, java.lang.String[] tokenNames, org.w3c.dom.Document owner)
          Serializes AST and its children to DOM.
static void toDom(antlr.collections.AST node, java.lang.String[] tokenNames, org.w3c.dom.Element holder)
          Serializes AST, its children and its siblings to DOM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AstUtil

public AstUtil()
Method Detail

toDom

public static void toDom(antlr.collections.AST node,
                         java.lang.String[] tokenNames,
                         org.w3c.dom.Element holder)
Serializes AST, its children and its siblings to DOM.

Parameters:
node -
tokenNames -
holder -

toDom

public static org.w3c.dom.Element toDom(antlr.collections.AST node,
                                        java.lang.String[] tokenNames,
                                        org.w3c.dom.Document owner)
Serializes AST and its children to DOM.

Parameters:
node -
tokenNames -
owner -

dumpAll

public static void dumpAll(antlr.collections.AST node,
                           java.lang.String[] tokenNames)
Dumps node and siblings

Parameters:
node -
tokenNames -

dump

public static void dump(antlr.collections.AST node,
                        java.lang.String[] tokenNames)
Dumps this node and its children

Parameters:
node -


Copyright © 2003 Hammurapi Group. All Rights Reserved.