public class DefaultCommentAssociater extends AbstractCommentAssociater
| Constructor and Description |
|---|
DefaultCommentAssociater() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMapping(Map<ILeafNode,org.eclipse.emf.ecore.EObject> mapping,
List<ILeafNode> currentComments,
org.eclipse.emf.ecore.EObject currentEObject) |
Map<ILeafNode,org.eclipse.emf.ecore.EObject> |
associateCommentsWithSemanticEObjects(org.eclipse.emf.ecore.EObject model,
Set<ICompositeNode> roots) |
protected void |
associateCommentsWithSemanticEObjects(Map<ILeafNode,org.eclipse.emf.ecore.EObject> mapping,
ICompositeNode rootNode)
This implementation associates each comment with the next following semantic token's EObject, except for the
case, where a line of the document end by a semantic element followed by a comment.
|
protected org.eclipse.emf.ecore.EObject |
getEObjectForRemainingComments(ICompositeNode rootNode) |
@Inject protected TokenUtil tokenUtil
public Map<ILeafNode,org.eclipse.emf.ecore.EObject> associateCommentsWithSemanticEObjects(org.eclipse.emf.ecore.EObject model, Set<ICompositeNode> roots)
protected void associateCommentsWithSemanticEObjects(Map<ILeafNode,org.eclipse.emf.ecore.EObject> mapping, ICompositeNode rootNode)
protected void addMapping(Map<ILeafNode,org.eclipse.emf.ecore.EObject> mapping, List<ILeafNode> currentComments, org.eclipse.emf.ecore.EObject currentEObject)
protected org.eclipse.emf.ecore.EObject getEObjectForRemainingComments(ICompositeNode rootNode)
Copyright © 2015. All Rights Reserved.