|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NodeMerger
Interface to merge two ASTs.
| Field Summary | |
|---|---|
static java.lang.String |
ITF_NAME
The default name of this interface. |
| Method Summary | |
|---|---|
java.lang.ClassLoader |
getClassLoader()
Gets the class loader used by this node merger. |
Node |
merge(Node elem,
Node superElem,
java.util.Map<java.lang.String,java.lang.String> idAttributes)
Merges the two given ASTs. |
void |
setClassLoader(java.lang.ClassLoader loader)
Sets the class loader used by this node merger. |
| Field Detail |
|---|
static final java.lang.String ITF_NAME
| Method Detail |
|---|
Node merge(Node elem,
Node superElem,
java.util.Map<java.lang.String,java.lang.String> idAttributes)
throws MergeException
attributes of nodes of
the first AST are replaced by attributes of the related nodes in the second
AST. Nodes of the two AST are interrelated using the
idAttributes map. This map associates a
node type to the name of its attribute that
identify a given node of this type among others. This is used when a node
may contains many sub-nodes of the same type.
elem - an AST.superElem - an AST that overrides the first one.idAttributes - a map associating a node type
to the name of its attribute that identify a given node of this
type among others.
MergeException - when an error occurs. TODO detail error cases.java.lang.ClassLoader getClassLoader()
void setClassLoader(java.lang.ClassLoader loader)
loader - the class loader used by this node merger.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||