polyglot.ext.pao.extension
Class PaoBinaryExt_c

java.lang.Object
  extended by polyglot.ext.jl.ast.Ext_c
      extended by polyglot.ext.pao.extension.PaoExt_c
          extended by polyglot.ext.pao.extension.PaoBinaryExt_c
All Implemented Interfaces:
java.lang.Cloneable, Ext, PaoExt, Copy

public class PaoBinaryExt_c
extends PaoExt_c

The PaoExt implementation for the Binary AST node.


Field Summary
 
Fields inherited from class polyglot.ext.jl.ast.Ext_c
ext, node
 
Constructor Summary
PaoBinaryExt_c()
           
 
Method Summary
 Node rewrite(PaoTypeSystem ts, NodeFactory nf)
          Rewrite the binary operators == and != to invoke Primitive.equals(o, p).
 
Methods inherited from class polyglot.ext.jl.ast.Ext_c
copy, dump, ext, ext, init, node, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.ast.Ext
dump, ext, ext, init, node
 
Methods inherited from interface polyglot.util.Copy
copy
 

Constructor Detail

PaoBinaryExt_c

public PaoBinaryExt_c()
Method Detail

rewrite

public Node rewrite(PaoTypeSystem ts,
                    NodeFactory nf)
Rewrite the binary operators == and != to invoke Primitive.equals(o, p).

Specified by:
rewrite in interface PaoExt
Overrides:
rewrite in class PaoExt_c
Parameters:
ts - The PaoTypeSystem instance.
nf - The NodeFactory instance.
Returns:
the result of rewriting the AST node to provide boxing and unboxing.
See Also:
PaoExt.rewrite(PaoTypeSystem, NodeFactory), Primitive.equals(Object, Object)