public class CompositeNodeWithSemanticElement extends CompositeNode implements org.eclipse.emf.common.notify.Adapter
Constructor and Description |
---|
CompositeNodeWithSemanticElement() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.EObject |
basicGetSemanticElement() |
protected void |
basicSetSemanticElement(org.eclipse.emf.ecore.EObject element) |
org.eclipse.emf.ecore.EObject |
getSemanticElement()
Returns the nearest semantic object that is associated with the subtree of this node.
|
org.eclipse.emf.common.notify.Notifier |
getTarget() |
boolean |
isAdapterForType(java.lang.Object type) |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget) |
basicGetChildren, basicGetFirstChild, basicGetLastChild, basicSetFirstChild, basicSetLookAhead, getChildren, getFirstChild, getGrammarElement, getLastChild, getLookAhead, getTotalLength, getTotalOffset, hasChildren, isFolded, isFolded, resolveAsParent
basicGetGrammarElement, basicGetLineOfOffset, basicGetNextSibling, basicGetParent, basicGetPreviousSibling, basicHasNextSibling, basicHasPreviousSibling, basicHasSiblings, basicIterator, basicSetGrammarElement, basicSetNextSibling, basicSetParent, basicSetPreviousSibling, getAsTreeIterable, getEndLine, getLeafNodes, getLength, getNextSibling, getOffset, getParent, getPreviousSibling, getRootNode, getStartLine, getSyntaxErrorMessage, getText, getTotalEndLine, getTotalEndOffset, getTotalStartLine, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings, iterator, reverse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsTreeIterable, getEndLine, getLeafNodes, getLength, getNextSibling, getOffset, getParent, getPreviousSibling, getRootNode, getStartLine, getSyntaxErrorMessage, getText, getTotalEndLine, getTotalEndOffset, getTotalStartLine, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings
public org.eclipse.emf.ecore.EObject getSemanticElement()
INode
null
whenever
the parser refused to create any objects due to unrecoverable errors. Implementations will usually walk up the
node tree to find the semantic object. As the node model structure does not reflect the containment structure of
the semantic object graph, clients should usually use the utilities in
NodeModelUtils
to
obtain the semantic instance.getSemanticElement
in interface INode
getSemanticElement
in class AbstractNode
null
.INode.hasDirectSemanticElement()
,
NodeModelUtils.findActualSemanticObjectFor(INode)
public org.eclipse.emf.ecore.EObject basicGetSemanticElement()
basicGetSemanticElement
in class AbstractNode
protected void basicSetSemanticElement(org.eclipse.emf.ecore.EObject element)
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public org.eclipse.emf.common.notify.Notifier getTarget()
getTarget
in interface org.eclipse.emf.common.notify.Adapter
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget
in interface org.eclipse.emf.common.notify.Adapter
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter