org.eclipse.xtext.parsetree.reconstr.impl
Class TokenUtil
java.lang.Object
org.eclipse.xtext.parsetree.reconstr.impl.TokenUtil
public class TokenUtil
- extends java.lang.Object
- Author:
- Moritz Eysholdt - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hiddenTokenHelper
@Inject
protected IHiddenTokenHelper hiddenTokenHelper
TokenUtil
public TokenUtil()
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)