Package editor

Class GosuDocument.Scanner

  • Enclosing class:
    GosuDocument

    public class GosuDocument.Scanner
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getEndOffset()
      This fetches the ending location of the current token in the document.
      int getStartOffset()
      This fetches the starting location of the current token in the document.
      int getType()  
      boolean isReservedWord​(java.lang.String strWord)  
      void nextToken()  
      void setRange​(int p0, int p1)
      Sets the range of the scanner.
      • Methods inherited from class java.lang.Object

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

      • isReservedWord

        public boolean isReservedWord​(java.lang.String strWord)
      • setRange

        public void setRange​(int p0,
                             int p1)
                      throws java.io.IOException
        Sets the range of the scanner. This should be called to reinitialize the scanner to the desired range of coverage.
        Throws:
        java.io.IOException
      • getStartOffset

        public final int getStartOffset()
        This fetches the starting location of the current token in the document.
      • getEndOffset

        public final int getEndOffset()
        This fetches the ending location of the current token in the document.
      • getType

        public int getType()
      • nextToken

        public void nextToken()
                       throws java.io.IOException
        Throws:
        java.io.IOException