当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
GuardedBlockHandler (Refactoring API) - NetBeans API Javadoc (Current Development Version)
org.netbeans.modules.refactoring.spi
Interface GuardedBlockHandler
public interface GuardedBlockHandler
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.
handleChange
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.replacements
- Empty collection where the method implementation should add the
replacement RefactoringElementImplementations if this GuardedBlockHandler can handle changes in the
guarded block the original RefactoringElementImplementation affects.transaction
- collection of Transactions.
- Returns:
- Problems found or null (if no problems were identified)