polyglot.ast
Interface Ext

All Superinterfaces:
java.lang.Cloneable, Copy
All Known Subinterfaces:
CofferExt, PaoExt
All Known Implementing Classes:
CofferExt_c, Ext_c, PaoExt_c

public interface Ext
extends Copy

Ext is the super type of all node extension objects. It contains a pointer back to the node it is extending and a possibly-null pointer to another extension node.


Method Summary
 void dump(CodeWriter w)
          Dump the AST node for debugging purposes.
 Ext ext()
          An extension of this extension, or null.
 Ext ext(Ext ext)
          Set the extension of this extension.
 void init(Node node)
          Initialize the extension object's pointer back to the node.
 Node node()
          The node that we are extending.
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

node

public Node node()
The node that we are extending.


init

public void init(Node node)
Initialize the extension object's pointer back to the node. This also initializes the back pointers for all extensions of the extension.


ext

public Ext ext()
An extension of this extension, or null.


ext

public Ext ext(Ext ext)
Set the extension of this extension.


dump

public void dump(CodeWriter w)
Dump the AST node for debugging purposes.