net.sourceforge.transmogrify.refactorer
Class RenameVariable

java.lang.Object
  |
  +--net.sourceforge.transmogrify.symtab.parser.ASTManipulator
        |
        +--net.sourceforge.transmogrify.hook.Transmogrifier
              |
              +--net.sourceforge.transmogrify.refactorer.RenameVariable

public class RenameVariable
extends Transmogrifier


Constructor Summary
RenameVariable()
           
RenameVariable(net.sourceforge.transmogrify.symtab.printer.ASTPrintManager printManager)
           
 
Method Summary
 void apply(Hook hook)
           
 boolean canApply(Hook hook)
           
 boolean canRefactor(net.sourceforge.transmogrify.symtab.Occurrence location)
           
 void refactor(net.sourceforge.transmogrify.symtab.Occurrence location, java.lang.String newName)
           
 
Methods inherited from class net.sourceforge.transmogrify.symtab.parser.ASTManipulator
addDirtyFile, getTree, setup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameVariable

public RenameVariable()

RenameVariable

public RenameVariable(net.sourceforge.transmogrify.symtab.printer.ASTPrintManager printManager)
Method Detail

apply

public void apply(Hook hook)
           throws java.lang.Exception
Overrides:
apply in class Transmogrifier

refactor

public void refactor(net.sourceforge.transmogrify.symtab.Occurrence location,
                     java.lang.String newName)
              throws java.lang.Exception

canApply

public boolean canApply(Hook hook)
Overrides:
canApply in class Transmogrifier

canRefactor

public boolean canRefactor(net.sourceforge.transmogrify.symtab.Occurrence location)