站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

GuardedBlockHandler (Refactoring API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.refactoring.api 1.0

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.


Method Summary
 Problem handleChange(RefactoringElementImplementation proposedChange, Collection<RefactoringElementImplementation> replacements, Collection<Transaction> transaction)
          Collects replacements for refactoring element affecting a guarded block.
 

Method Detail

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)

org.netbeans.modules.refactoring.api 1.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.