public abstract class ElementInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected ElementInfo |
parent |
Modifier | Constructor and Description |
---|---|
protected |
ElementInfo(String name) |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(InfoTreeVisitor visitor) |
protected <T extends ElementInfo> |
adoptChild(T newChild) |
protected void |
adoptChildren(Collection<? extends ElementInfo> newChildren) |
abstract Object |
getAnnotatedElement() |
List<ElementInfo> |
getChildren() |
String |
getName() |
ElementInfo |
getParent() |
String |
getUniqueID()
Returns a unique identifier string for this element.
|
void |
mergeChildrenAndDelete(ElementInfo target) |
String |
toString() |
protected final String name
protected ElementInfo parent
protected ElementInfo(String name)
public String getName()
public ElementInfo getParent()
public List<ElementInfo> getChildren()
protected <T extends ElementInfo> T adoptChild(T newChild)
protected void adoptChildren(Collection<? extends ElementInfo> newChildren)
public void mergeChildrenAndDelete(ElementInfo target)
public final String getUniqueID()
public abstract Object getAnnotatedElement()
public abstract void accept(InfoTreeVisitor visitor)