Class GroovyToken
java.lang.Object
net.sourceforge.pmd.lang.groovy.ast.impl.antlr4.GroovyToken
- All Implemented Interfaces:
Comparable<GroovyToken>,GenericToken<GroovyToken>,Reportable
A Groovy specific token representation.
This is simply a copy of
AntlrToken but
referencing the jarjared version of antlr4 used by the groovy lexer.-
Constructor Summary
ConstructorsConstructorDescriptionGroovyToken(groovyjarjarantlr4.v4.runtime.Token token, GroovyToken previousComment, TextDocument textDoc) Constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.lang.ast.GenericToken
getImage, imageEquals, isImplicit
-
Constructor Details
-
GroovyToken
public GroovyToken(groovyjarjarantlr4.v4.runtime.Token token, GroovyToken previousComment, TextDocument textDoc) Constructor- Parameters:
token- The antlr token implementationpreviousComment- The previous commenttextDoc- The text document
-
-
Method Details
-
getNext
- Specified by:
getNextin interfaceGenericToken<GroovyToken>
-
getPreviousComment
- Specified by:
getPreviousCommentin interfaceGenericToken<GroovyToken>
-
getImageCs
- Specified by:
getImageCsin interfaceGenericToken<GroovyToken>
-
getRegion
Returns a text region with the coordinates of this token.- Specified by:
getRegionin interfaceGenericToken<GroovyToken>
-
getReportLocation
- Specified by:
getReportLocationin interfaceReportable
-
isEof
public boolean isEof()- Specified by:
isEofin interfaceGenericToken<GroovyToken>
-
compareTo
- Specified by:
compareToin interfaceComparable<GroovyToken>- Specified by:
compareToin interfaceGenericToken<GroovyToken>
-
getKind
public int getKind()- Specified by:
getKindin interfaceGenericToken<GroovyToken>
-
isHidden
public boolean isHidden() -
isDefault
public boolean isDefault()
-