Package org.eclipse.xtext.nodemodel.impl
Class CompositeNodeWithSemanticElement
- java.lang.Object
-
- org.eclipse.xtext.nodemodel.impl.AbstractNode
-
- org.eclipse.xtext.nodemodel.impl.CompositeNode
-
- 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
- Noextend:
- This class is not intended to be subclassed by clients.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.nodemodel.impl.AbstractNode
AbstractNode.NodeType
-
-
Constructor Summary
Constructors Constructor Description CompositeNodeWithSemanticElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObjectbasicGetSemanticElement()protected voidbasicSetSemanticElement(org.eclipse.emf.ecore.EObject element)protected AbstractNode.NodeTypegetNodeId()org.eclipse.emf.ecore.EObjectgetSemanticElement()Returns the nearest semantic object that is associated with the subtree of this node.org.eclipse.emf.common.notify.NotifiergetTarget()booleanisAdapterForType(java.lang.Object type)voidnotifyChanged(org.eclipse.emf.common.notify.Notification notification)protected voidreadData(java.io.DataInputStream in, DeserializationConversionContext context)voidsetTarget(org.eclipse.emf.common.notify.Notifier newTarget)protected voidwrite(java.io.DataOutputStream out, SerializationConversionContext scc)-
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, getEndOffset, getLeafNodes, getLength, getNextSibling, getOffset, getParent, getPreviousSibling, getRootNode, getStartLine, getSyntaxErrorMessage, getText, getTextRegion, getTextRegionWithLineInformation, getTextRegionWithLineInformation, getTotalEndLine, getTotalEndOffset, getTotalStartLine, getTotalTextRegion, getTotalTextRegionWithLineInformation, 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, getEndOffset, getLeafNodes, getLength, getNextSibling, getOffset, getParent, getPreviousSibling, getRootNode, getStartLine, getSyntaxErrorMessage, getText, getTextRegion, getTextRegionWithLineInformation, getTotalEndLine, getTotalEndOffset, getTotalStartLine, getTotalTextRegion, getTotalTextRegionWithLineInformation, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings
-
-
-
-
Method Detail
-
getSemanticElement
public org.eclipse.emf.ecore.EObject getSemanticElement()
Description copied from interface:INodeReturns the nearest semantic object that is associated with the subtree of this node. May returnnullwhenever 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 inNodeModelUtilsto obtain the semantic instance.- Specified by:
getSemanticElementin interfaceINode- Overrides:
getSemanticElementin classAbstractNode- 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:
basicGetSemanticElementin classAbstractNode
-
basicSetSemanticElement
protected void basicSetSemanticElement(org.eclipse.emf.ecore.EObject element)
-
notifyChanged
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
- Specified by:
notifyChangedin interfaceorg.eclipse.emf.common.notify.Adapter
-
getTarget
public org.eclipse.emf.common.notify.Notifier getTarget()
- Specified by:
getTargetin interfaceorg.eclipse.emf.common.notify.Adapter
-
setTarget
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
- Specified by:
setTargetin interfaceorg.eclipse.emf.common.notify.Adapter
-
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForTypein interfaceorg.eclipse.emf.common.notify.Adapter
-
readData
protected void readData(java.io.DataInputStream in, DeserializationConversionContext context) throws java.io.IOException- Overrides:
readDatain classCompositeNode- Throws:
java.io.IOException
-
write
protected void write(java.io.DataOutputStream out, SerializationConversionContext scc) throws java.io.IOException- Overrides:
writein classCompositeNode- Throws:
java.io.IOException
-
getNodeId
protected AbstractNode.NodeType getNodeId()
- Overrides:
getNodeIdin classCompositeNode
-
-