org.eclipse.xtext.parsetree.reconstr.impl
Class TokenUtil

java.lang.Object
  extended by org.eclipse.xtext.parsetree.reconstr.impl.TokenUtil

public class TokenUtil
extends java.lang.Object

Author:
Moritz Eysholdt - Initial contribution and API

Field Summary
protected  IHiddenTokenHelper hiddenTokenHelper
           
 
Constructor Summary
TokenUtil()
           
 
Method Summary
 Pair<java.util.List<ILeafNode>,java.util.List<ILeafNode>> getLeadingAndTrailingHiddenTokens(INode node)
           
 org.eclipse.emf.ecore.EObject getTokenOwner(INode node)
           
 AbstractRule getTokenRule(INode node)
           
 boolean isCommentNode(INode node)
           
 boolean isToken(INode node)
           
 boolean isWhitespaceNode(INode node)
           
 boolean isWhitespaceOrCommentNode(INode node)
           
 java.lang.String serializeNode(INode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hiddenTokenHelper

@Inject
protected IHiddenTokenHelper hiddenTokenHelper
Constructor Detail

TokenUtil

public TokenUtil()
Method Detail

getLeadingAndTrailingHiddenTokens

public Pair<java.util.List<ILeafNode>,java.util.List<ILeafNode>> getLeadingAndTrailingHiddenTokens(INode node)

getTokenOwner

public org.eclipse.emf.ecore.EObject getTokenOwner(INode node)

getTokenRule

public AbstractRule getTokenRule(INode node)

isCommentNode

public boolean isCommentNode(INode node)

isToken

public boolean isToken(INode node)

isWhitespaceNode

public boolean isWhitespaceNode(INode node)

isWhitespaceOrCommentNode

public boolean isWhitespaceOrCommentNode(INode node)

serializeNode

public java.lang.String serializeNode(INode node)