org.acm.seguin.refactor
Class TransformAST

java.lang.Object
  extended by org.acm.seguin.refactor.TransformAST
Direct Known Subclasses:
AddAbstractMethod, AddConcreteMethod, AddConstructor, AddFieldTransform, AddImplementedInterfaceTransform, AddImportTransform, AddMethodTransform, ChangePackageTransform, InvokeMovedMethodTransform, RemoveFieldTransform, RemoveImportTransform, RemoveMethodTransform, RemoveSamePackageTransform, RenameFieldTransform, RenameMethodTransform, RenameParentTypeTransform, RenameTypeTransform

public abstract class TransformAST
extends java.lang.Object

This is the base class for any algorithm that updates the syntax tree. Each of these objects contains one update to a syntax tree.

Author:
Chris Seguin

Constructor Summary
TransformAST()
           
 
Method Summary
protected  void copyModifiers(net.sourceforge.jrefactory.ast.ModifierHolder source, net.sourceforge.jrefactory.ast.ModifierHolder dest)
          Sets up the modifiers
abstract  void update(net.sourceforge.jrefactory.ast.SimpleNode root)
          Update the syntax tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformAST

public TransformAST()
Method Detail

update

public abstract void update(net.sourceforge.jrefactory.ast.SimpleNode root)
Update the syntax tree

Parameters:
root - the root of the syntax tree

copyModifiers

protected void copyModifiers(net.sourceforge.jrefactory.ast.ModifierHolder source,
                             net.sourceforge.jrefactory.ast.ModifierHolder dest)
Sets up the modifiers

Parameters:
source - the source holder
dest - the destination holder