net.sourceforge.transmogrify.refactorer
Class ExtractMethod

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

public class ExtractMethod
extends Transmogrifier


Constructor Summary
ExtractMethod()
           
ExtractMethod(net.sourceforge.transmogrify.symtab.printer.ASTPrintManager manager)
           
 
Method Summary
 void apply(Hook hook)
           
 boolean canApply(Hook hook)
           
 void refactor(net.sourceforge.transmogrify.symtab.Occurrence startLocation, net.sourceforge.transmogrify.symtab.Occurrence endLocation, java.lang.String name)
           
 
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

ExtractMethod

public ExtractMethod(net.sourceforge.transmogrify.symtab.printer.ASTPrintManager manager)

ExtractMethod

public ExtractMethod()
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 startLocation,
                     net.sourceforge.transmogrify.symtab.Occurrence endLocation,
                     java.lang.String name)
              throws RefactoringException

canApply

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