public class ExtendedElementFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static ExtendedElementFactory |
INSTANCE
The default factory instance.
|
| Constructor and Description |
|---|
ExtendedElementFactory() |
| Modifier and Type | Method and Description |
|---|---|
ExtendedElement |
create(com.sun.tools.javac.tree.JCTree tree)
Creates an extended element out of a javac tree.
|
static <T extends com.sun.tools.javac.tree.JCTree> |
toTree(ExtendedElement element)
Gets the javac tree from the given element.
|
public static final ExtendedElementFactory INSTANCE
public static <T extends com.sun.tools.javac.tree.JCTree> T toTree(ExtendedElement element)
element - the extended element to get the tree from.public ExtendedElement create(com.sun.tools.javac.tree.JCTree tree)
Note that if the tree instance cannot be mapped to a specific extended
element, a generic extended element is returned. The returned extended
element can be mapped back to a javac tree using the
toTree(ExtendedElement) method.