Class ScalaTokenAdapter

  • All Implemented Interfaces:
    Comparable<ScalaTokenAdapter>, net.sourceforge.pmd.lang.ast.GenericToken<ScalaTokenAdapter>, net.sourceforge.pmd.reporting.Reportable

    public class ScalaTokenAdapter
    extends Object
    implements net.sourceforge.pmd.lang.ast.GenericToken<ScalaTokenAdapter>
    Adapts the scala.meta.tokens.Token so that it can be used with the generic BaseTokenFilter
    • Method Detail

      • getPreviousComment

        public ScalaTokenAdapter getPreviousComment()
        Specified by:
        getPreviousComment in interface net.sourceforge.pmd.lang.ast.GenericToken<ScalaTokenAdapter>
      • getImage

        public String getImage()
        Specified by:
        getImage in interface net.sourceforge.pmd.lang.ast.GenericToken<ScalaTokenAdapter>
      • getImageCs

        public net.sourceforge.pmd.lang.document.Chars getImageCs()
        Specified by:
        getImageCs in interface net.sourceforge.pmd.lang.ast.GenericToken<ScalaTokenAdapter>
      • getRegion

        public net.sourceforge.pmd.lang.document.TextRegion getRegion()
        Specified by:
        getRegion in interface net.sourceforge.pmd.lang.ast.GenericToken<ScalaTokenAdapter>
      • getReportLocation

        public net.sourceforge.pmd.lang.document.FileLocation getReportLocation()
        Specified by:
        getReportLocation in interface net.sourceforge.pmd.reporting.Reportable
      • isEof

        public boolean isEof()
        Specified by:
        isEof in interface net.sourceforge.pmd.lang.ast.GenericToken<ScalaTokenAdapter>
      • getKind

        public int getKind()
        Specified by:
        getKind in interface net.sourceforge.pmd.lang.ast.GenericToken<ScalaTokenAdapter>