Class BufferedRuleBasedScanner

    • Constructor Detail

      • BufferedRuleBasedScanner

        protected BufferedRuleBasedScanner()
        Creates a new buffered rule based scanner which does not have any rule and a default buffer size of 500 characters.
      • BufferedRuleBasedScanner

        public BufferedRuleBasedScanner​(int size)
        Creates a new buffered rule based scanner which does not have any rule. The buffer size is set to the given number of characters.
        Parameters:
        size - the buffer size
    • Method Detail

      • setBufferSize

        protected void setBufferSize​(int size)
        Sets the buffer to the given number of characters.
        Parameters:
        size - the buffer size
      • setRange

        public void setRange​(IDocument document,
                             int offset,
                             int length)
        Description copied from interface: ITokenScanner
        Configures the scanner by providing access to the document range that should be scanned.
        Specified by:
        setRange in interface ITokenScanner
        Overrides:
        setRange in class RuleBasedScanner
        Parameters:
        document - the document to scan
        offset - the offset of the document range to scan
        length - the length of the document range to scan