Class ScalaTokenizer

  • All Implemented Interfaces:
    net.sourceforge.pmd.cpd.Tokenizer

    public class ScalaTokenizer
    extends java.lang.Object
    implements net.sourceforge.pmd.cpd.Tokenizer
    Scala Tokenizer class. Uses the Scala Meta Tokenizer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SCALA_VERSION_PROPERTY
      Denotes the version of the scala dialect to use.
      • Fields inherited from interface net.sourceforge.pmd.cpd.Tokenizer

        DEFAULT_SKIP_BLOCKS_PATTERN, IGNORE_ANNOTATIONS, IGNORE_IDENTIFIERS, IGNORE_LITERALS, IGNORE_USINGS, OPTION_SKIP_BLOCKS, OPTION_SKIP_BLOCKS_PATTERN
    • Constructor Summary

      Constructors 
      Constructor Description
      ScalaTokenizer()
      Create the Tokenizer using properties from the system environment.
      ScalaTokenizer​(java.util.Properties properties)
      Create the Tokenizer given a set of properties.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void tokenize​(net.sourceforge.pmd.cpd.SourceCode sourceCode, net.sourceforge.pmd.cpd.Tokens tokenEntries)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SCALA_VERSION_PROPERTY

        public static final java.lang.String SCALA_VERSION_PROPERTY
        Denotes the version of the scala dialect to use. Based on the values in BaseLanguageModule.getVersions()
        See Also:
        Constant Field Values
    • Constructor Detail

      • ScalaTokenizer

        public ScalaTokenizer()
        Create the Tokenizer using properties from the system environment.
      • ScalaTokenizer

        public ScalaTokenizer​(java.util.Properties properties)
        Create the Tokenizer given a set of properties.
        Parameters:
        properties - the Properties object to use
    • Method Detail

      • tokenize

        public void tokenize​(net.sourceforge.pmd.cpd.SourceCode sourceCode,
                             net.sourceforge.pmd.cpd.Tokens tokenEntries)
                      throws java.io.IOException
        Specified by:
        tokenize in interface net.sourceforge.pmd.cpd.Tokenizer
        Throws:
        java.io.IOException