public abstract class ContextFunction extends Object implements IContextFunction
IContextFunction
for specific
rules that must be followed by function implementations.
This class is intended to be subclassed by clients.
IContextFunction
SERVICE_CONTEXT_KEY, SERVICE_NAME
Constructor and Description |
---|
ContextFunction()
Constructs a new instance of the context function
|
Modifier and Type | Method and Description |
---|---|
Object |
compute(IEclipseContext context)
Deprecated.
IContextFunction 's compute() was changed to take the context key |
Object |
compute(IEclipseContext context,
String contextKey)
Evaluates the function based on the provided arguments and context to
produce a consistent result.
|
public ContextFunction()
public Object compute(IEclipseContext context)
IContextFunction
's compute() was changed to take the context keypublic Object compute(IEclipseContext context, String contextKey)
compute
in interface IContextFunction
context
- The context in which to perform the value computation.contextKey
- The context key used to find this function; may be null
such
as if invoked directly.IInjector.NOT_A_VALUE
to cause lookup to continue up the context hierarchy.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.