Class PLSQLTokenizer

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

    public class PLSQLTokenizer
    extends java.lang.Object
    implements net.sourceforge.pmd.cpd.Tokenizer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String IGNORE_COMMENTS
      Deprecated.
      static java.lang.String IGNORE_IDENTIFIERS  
      static java.lang.String IGNORE_LITERALS  
      • Fields inherited from interface net.sourceforge.pmd.cpd.Tokenizer

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

      Constructors 
      Constructor Description
      PLSQLTokenizer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void setIgnoreComments​(boolean ignore)
      Deprecated.
      void setIgnoreIdentifiers​(boolean ignore)  
      void setIgnoreLiterals​(boolean ignore)  
      void setProperties​(java.util.Properties properties)  
      void tokenize​(net.sourceforge.pmd.cpd.SourceCode sourceCode, net.sourceforge.pmd.cpd.Tokens tokenEntries)
      Read Reader from SourceCode and output an ordered tree of PLSQL tokens.
      • Methods inherited from class java.lang.Object

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

      • IGNORE_COMMENTS

        @Deprecated
        public static final java.lang.String IGNORE_COMMENTS
        Deprecated.
        See Also:
        Constant Field Values
      • IGNORE_IDENTIFIERS

        public static final java.lang.String IGNORE_IDENTIFIERS
        See Also:
        Constant Field Values
    • Constructor Detail

      • PLSQLTokenizer

        public PLSQLTokenizer()
    • Method Detail

      • setProperties

        public void setProperties​(java.util.Properties properties)
      • setIgnoreComments

        @Deprecated
        public void setIgnoreComments​(boolean ignore)
        Deprecated.
      • setIgnoreLiterals

        public void setIgnoreLiterals​(boolean ignore)
      • setIgnoreIdentifiers

        public void setIgnoreIdentifiers​(boolean ignore)
      • tokenize

        public void tokenize​(net.sourceforge.pmd.cpd.SourceCode sourceCode,
                             net.sourceforge.pmd.cpd.Tokens tokenEntries)
        Read Reader from SourceCode and output an ordered tree of PLSQL tokens.
        Specified by:
        tokenize in interface net.sourceforge.pmd.cpd.Tokenizer
        Parameters:
        sourceCode - PLSQL source in file, string or database (any suitable object that can return a Reader).
        tokenEntries - Derived based on PLSQL Abstract Syntax Tree (derived from PLDOc parser.)