Class ScalaTokenAdapter
- java.lang.Object
-
- net.sourceforge.pmd.lang.scala.cpd.ScalaTokenAdapter
-
- All Implemented Interfaces:
Comparable<ScalaTokenAdapter>,GenericToken<ScalaTokenAdapter>,Reportable
public class ScalaTokenAdapter extends Object implements GenericToken<ScalaTokenAdapter>
Adapts the scala.meta.tokens.Token so that it can be used with the generic BaseTokenFilter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetImage()CharsgetImageCs()intgetKind()ScalaTokenAdaptergetNext()ScalaTokenAdaptergetPreviousComment()TextRegiongetRegion()FileLocationgetReportLocation()booleanisEof()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.GenericToken
compareTo, imageEquals, isImplicit
-
-
-
-
Method Detail
-
getNext
public ScalaTokenAdapter getNext()
- Specified by:
getNextin interfaceGenericToken<ScalaTokenAdapter>
-
getPreviousComment
public ScalaTokenAdapter getPreviousComment()
- Specified by:
getPreviousCommentin interfaceGenericToken<ScalaTokenAdapter>
-
getImage
public String getImage()
- Specified by:
getImagein interfaceGenericToken<ScalaTokenAdapter>
-
getImageCs
public Chars getImageCs()
- Specified by:
getImageCsin interfaceGenericToken<ScalaTokenAdapter>
-
getRegion
public TextRegion getRegion()
- Specified by:
getRegionin interfaceGenericToken<ScalaTokenAdapter>
-
getReportLocation
public FileLocation getReportLocation()
- Specified by:
getReportLocationin interfaceReportable
-
isEof
public boolean isEof()
- Specified by:
isEofin interfaceGenericToken<ScalaTokenAdapter>
-
getKind
public int getKind()
- Specified by:
getKindin interfaceGenericToken<ScalaTokenAdapter>
-
-