org.eclipse.xtext.nodemodel.impl
Class CompositeNodeWithSemanticElement

java.lang.Object
  extended by org.eclipse.xtext.nodemodel.impl.AbstractNode
      extended by org.eclipse.xtext.nodemodel.impl.CompositeNode
          extended by org.eclipse.xtext.nodemodel.impl.CompositeNodeWithSemanticElement
All Implemented Interfaces:
java.lang.Iterable<INode>, org.eclipse.emf.common.notify.Adapter, BidiIterable<INode>, BidiTreeIterable<INode>, ICompositeNode, INode
Direct Known Subclasses:
CompositeNodeWithSemanticElementAndSyntaxError

public class CompositeNodeWithSemanticElement
extends CompositeNode
implements org.eclipse.emf.common.notify.Adapter

Author:
Sebastian Zarnekow - Initial contribution and API
This class is not intended to be subclassed by clients.
This class is not intended to be subclassed by clients.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Constructor Summary
CompositeNodeWithSemanticElement()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.eclipse.xtext.nodemodel.impl.CompositeNode
basicGetChildren, basicGetFirstChild, basicGetLastChild, basicSetFirstChild, basicSetLookAhead, getChildren, getFirstChild, getGrammarElement, getLastChild, getLookAhead, getTotalLength, getTotalOffset, hasChildren, isFolded, isFolded, resolveAsParent
 
Methods inherited from class org.eclipse.xtext.nodemodel.impl.AbstractNode
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtext.nodemodel.INode
getAsTreeIterable, getEndLine, getLeafNodes, getLength, getNextSibling, getOffset, getParent, getPreviousSibling, getRootNode, getStartLine, getSyntaxErrorMessage, getText, getTotalEndLine, getTotalEndOffset, getTotalStartLine, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings
 

Constructor Detail

CompositeNodeWithSemanticElement

public CompositeNodeWithSemanticElement()
Method Detail

getSemanticElement

public org.eclipse.emf.ecore.EObject getSemanticElement()
Description copied from interface: INode
Returns the nearest semantic object that is associated with the subtree of this node. May return 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.

Specified by:
getSemanticElement in interface INode
Overrides:
getSemanticElement in class AbstractNode
Returns:
the nearest semantic object that is associated with the subtree of this node. May return null.
See Also:
INode.hasDirectSemanticElement(), NodeModelUtils.findActualSemanticObjectFor(INode)

basicGetSemanticElement

public org.eclipse.emf.ecore.EObject basicGetSemanticElement()
Overrides:
basicGetSemanticElement in class AbstractNode

basicSetSemanticElement

protected void basicSetSemanticElement(org.eclipse.emf.ecore.EObject element)

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter

getTarget

public org.eclipse.emf.common.notify.Notifier getTarget()
Specified by:
getTarget in interface org.eclipse.emf.common.notify.Adapter

setTarget

public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
Specified by:
setTarget in interface org.eclipse.emf.common.notify.Adapter

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter