|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.expressions.ExpressionConverter
public final class ExpressionConverter
An expression converter converts an XML expression represented by an
IConfigurationElement or Element (DOM) subtree into a
corresponding expression tree.
An expression converter manages a list of ElementHandlers. Element
handlers are responsible to do the actual conversion. The element handlers
build a chain of responsibility.
| Constructor Summary | |
|---|---|
ExpressionConverter(ElementHandler[] handlers)
Creates a new expression converter with the given list of element handlers. |
|
| Method Summary | |
|---|---|
static ExpressionConverter |
getDefault()
Returns the default expression converter. |
Expression |
perform(org.w3c.dom.Element root)
Converts the tree of DOM elements represented by the given root element and returns a corresponding expression tree. |
Expression |
perform(IConfigurationElement root)
Converts the tree of configuration elements represented by the given root element and returns a corresponding expression tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionConverter(ElementHandler[] handlers)
handlers - the array of element handlers| Method Detail |
|---|
public static ExpressionConverter getDefault()
public Expression perform(IConfigurationElement root)
throws CoreException
root - the configuration element to be converted
null
if the configuration element cannot be converted
CoreException - if the configuration element can't be
converted. Reasons include: (a) no handler is available to
cope with a certain configuration element or (b) the XML
expression tree is malformed.
public Expression perform(org.w3c.dom.Element root)
throws CoreException
root - the element to be converted
null
if the element cannot be converted
CoreException - if the element can't be converted.
Reasons include: (a) no handler is available to cope with
a certain element or (b) the XML expression tree is malformed.
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.