| org.netbeans.modules.refactoring.spi.GuardedBlockHandler
GuardedBlockHandler | public interface GuardedBlockHandler (Code) | | Interface implemented by guarded block refactoring handlers. Contains a callback method
that gets a RefactoringElementImplementation affecting a guarded block as a parameter and can return
the new RefactoringElementImplementation that will replace the passed RefactoringElementImplementations
in the result collection of refactoring elements for a given refactoring.
author: Martin Matula |
Method Summary | |
Problem | handleChange(RefactoringElementImplementation proposedChange, Collection<RefactoringElementImplementation> replacements, Collection<Transaction> transaction) Collects replacements for refactoring element affecting a guarded block.
Parameters: proposedChange - RefactoringElementImplementation that affects a guarded block. Parameters: replacements - Empty collection where the method implementation should add thereplacement RefactoringElementImplementations if this GuardedBlockHandler can handle changes in theguarded block the original RefactoringElementImplementation affects. Parameters: transaction - collection of Transactions. |
handleChange | Problem handleChange(RefactoringElementImplementation proposedChange, Collection<RefactoringElementImplementation> replacements, Collection<Transaction> transaction)(Code) | | Collects replacements for refactoring element affecting a guarded block.
Parameters: proposedChange - RefactoringElementImplementation that affects a guarded block. Parameters: replacements - Empty collection where the method implementation should add thereplacement RefactoringElementImplementations if this GuardedBlockHandler can handle changes in theguarded block the original RefactoringElementImplementation affects. Parameters: transaction - collection of Transactions. Problems found or null (if no problems were identified) |
|
|