public abstract class ElementHandler extends Object
IConfigurationElement into a
corresponding expression object.
The class should be subclassed by clients wishing to provide an element handler for special expressions.
| Constructor and Description |
|---|
ElementHandler() |
| Modifier and Type | Method and Description |
|---|---|
abstract Expression |
create(ExpressionConverter converter,
IConfigurationElement config)
Creates the corresponding expression for the given configuration element.
|
static ElementHandler |
getDefault()
The default element handler which can cope with all XML expression elements
defined by the common expression language.
|
protected void |
processChildren(ExpressionConverter converter,
IConfigurationElement element,
org.eclipse.core.internal.expressions.CompositeExpression expression)
Converts the children of the given configuration element and adds them
to the given composite expression.
|
public static ElementHandler getDefault()
public abstract Expression create(ExpressionConverter converter, IConfigurationElement config) throws CoreException
converter - the expression converter used to initiate the
conversion processconfig - the configuration element to convertCoreException - if the conversion failedprotected void processChildren(ExpressionConverter converter, IConfigurationElement element, org.eclipse.core.internal.expressions.CompositeExpression expression) throws CoreException
Note this is an internal method and should not be called by clients.
converter - the converter used to do the actual conversionelement - the configuration element for which the children
are to be processedexpression - the composite expression representing the result
of the conversionCoreException - if the conversion failedGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.