当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
Context (Refactoring API) - NetBeans API Javadoc (Current Development Version)
org.netbeans.modules.refactoring.api
Class Context
java.lang.Object
org.openide.util.Lookup
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
Fields inherited from class org.openide.util.Lookup |
EMPTY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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