public class TokenUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IHiddenTokenHelper |
hiddenTokenHelper |
Constructor and Description |
---|
TokenUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
@Inject protected IHiddenTokenHelper hiddenTokenHelper
public Pair<java.util.List<ILeafNode>,java.util.List<ILeafNode>> getLeadingAndTrailingHiddenTokens(INode node)
public org.eclipse.emf.ecore.EObject getTokenOwner(INode node)
public AbstractRule getTokenRule(INode node)
public boolean isCommentNode(INode node)
public boolean isToken(INode node)
public boolean isWhitespaceNode(INode node)
public boolean isWhitespaceOrCommentNode(INode node)
public java.lang.String serializeNode(INode node)