polyglot.ext.pao.extension
Interface PaoExt

All Superinterfaces:
java.lang.Cloneable, Copy, Ext
All Known Implementing Classes:
PaoBinaryExt_c, PaoCastExt_c, PaoExt_c, PaoInstanceofExt_c

public interface PaoExt
extends Ext

The Ext interface for the pao extension. The PaoExt interface provides one additional method: rewrite(PaoTypeSystem, NodeFactory).


Method Summary
 Node rewrite(PaoTypeSystem ts, NodeFactory nf)
          Rewrites the Node associated with this Ext object, to automatically box and unbox primitives.
 
Methods inherited from interface polyglot.ast.Ext
dump, ext, ext, init, node
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

rewrite

Node rewrite(PaoTypeSystem ts,
             NodeFactory nf)
Rewrites the Node associated with this Ext object, to automatically box and unbox primitives.

Parameters:
ts - The PaoTypeSystem instance.
nf - The NodeFactory instance.
Returns:
the result of rewriting the AST node to provide boxing and unboxing.