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

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

org.netbeans.modules.refactoring.api 1.0

org.netbeans.modules.refactoring.spi
Interface GuardedBlockHandlerFactory


public interface GuardedBlockHandlerFactory

Factory for an object handling refactoring in a guarded block. This should be implemented by modules providing guarded sections in Java documents. If a change proposed by a refactoring affects a guarded section, the refactoring object asks the registered GuardedBlockHandlers to handle that change.


Method Summary
 GuardedBlockHandler createInstance(AbstractRefactoring refactoring)
          Creates and returns a new instance of the guarded block refactoring handler or null if the handler is not suitable for the passed refactoring.
 

Method Detail

createInstance

GuardedBlockHandler createInstance(AbstractRefactoring refactoring)
Creates and returns a new instance of the guarded block refactoring handler or null if the handler is not suitable for the passed refactoring.

Parameters:
refactoring - Refactoring, the handler should be plugged in.
Returns:
Instance of GuardedBlockHandler or null if the handler is not applicable to the passed refactoring.

org.netbeans.modules.refactoring.api 1.0

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