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

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

org.netbeans.modules.refactoring.api 1.0

org.netbeans.modules.refactoring.api
Class Context

java.lang.Object
  extended by org.openide.util.Lookup
      extended by org.netbeans.modules.refactoring.api.Context

public final class Context
extends Lookup

Context contains "enviroment" in which the refactoring was invoked e.g. Java refactoring might put instance of ClasspathInfo here

See Also:
AbstractRefactoring

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.util.Lookup
Lookup.Item<T>, Lookup.Provider, Lookup.Result<T>, Lookup.Template<T>
 
Field Summary
 
Fields inherited from class org.openide.util.Lookup
EMPTY
 
Method Summary
 void add(Object value)
          Adds value instance into this context for instance Java impl.
<T> T
lookup(Class<T> clazz)
           
<T> Lookup.Result<T>
lookup(Lookup.Template<T> template)
           
 
Methods inherited from class org.openide.util.Lookup
getDefault, lookupAll, lookupItem, lookupResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public void add(Object value)
Adds value instance into this context for instance Java impl. puts instance of ClasspathInfo here. If there is an instance already set for this context, old value is replaced by new one.


lookup

public <T> T lookup(Class<T> clazz)
Specified by:
lookup in class Lookup

lookup

public <T> Lookup.Result<T> lookup(Lookup.Template<T> template)
Specified by:
lookup in class Lookup

org.netbeans.modules.refactoring.api 1.0

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