当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
GuardedBlockHandlerFactory (Refactoring API) - NetBeans API Javadoc (Current Development Version)
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.
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.