JavaScript is disabled on your browser.
Skip navigation links
gnu.text

Class SourceLocator.Simple

    • Field Summary

      Fields
      Modifier and Type Field and Description
      protected java.lang.String filename
      protected long position
    • Constructor Summary

      Constructors
      Constructor and Description
      Simple ()
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      int getColumnNumber ()
      Return current column number.
      int getEndColumn ()
      Column (one-origin) of end of range; unknown/unspecified is -1.
      int getEndLine ()
      Line number (one-origin) of end of range; unknown/unspecified is -1.
      java.lang.String getFileName ()
      Normally same as getSystemId.
      int getLineNumber ()
      Return current line number.
      java.lang.String getPublicId ()
      int getStartColumn ()
      Column (one-origin) of start of range; unknown/unspecified is -1.
      int getStartLine ()
      Line number (one-origin) of start of range; unknown/unspecified is -1.
      java.lang.String getSystemId ()
      boolean isRepl ()
      boolean isStableSourceLocation ()
      True if position is unlikely to change.
      void setFile (java.lang.String filename)
      void setLine (int lineno)
      void setLine (int lineno, int colno)
      void setLine (java.lang.String filename, int line, int column)
      void setLocation (SourceLocator location)
      • Methods inherited from class java.lang.Object

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

      • filename

        protected java.lang.String filename
      • position

        protected long position
    • Constructor Detail

      • Simple

        public Simple()
    • Method Detail

      • getFileName

        public java.lang.String getFileName()
        Description copied from interface: SourceLocator
        Normally same as getSystemId.
      • isRepl

        public boolean isRepl()
      • getPublicId

        public java.lang.String getPublicId()
        Specified by:
        getPublicId in interface javax.xml.transform.SourceLocator
        Specified by:
        getPublicId in interface org.xml.sax.Locator
      • getSystemId

        public java.lang.String getSystemId()
        Specified by:
        getSystemId in interface javax.xml.transform.SourceLocator
        Specified by:
        getSystemId in interface org.xml.sax.Locator
      • getLineNumber

        public int getLineNumber()
        Description copied from interface: SourceLocator
        Return current line number. Normally the same as getStartLine(). The "first" line is line 1; unknown is -1.
        Specified by:
        getLineNumber in interface javax.xml.transform.SourceLocator
        Specified by:
        getLineNumber in interface org.xml.sax.Locator
      • getColumnNumber

        public int getColumnNumber()
        Description copied from interface: SourceLocator
        Return current column number. Normally the same as getStartColumn(). The "first" column is column 1; unknown is -1.
        Specified by:
        getColumnNumber in interface javax.xml.transform.SourceLocator
        Specified by:
        getColumnNumber in interface org.xml.sax.Locator
      • getStartLine

        public int getStartLine()
        Description copied from interface: SourceLocator
        Line number (one-origin) of start of range; unknown/unspecified is -1.
      • getStartColumn

        public int getStartColumn()
        Description copied from interface: SourceLocator
        Column (one-origin) of start of range; unknown/unspecified is -1.
      • getEndLine

        public int getEndLine()
        Description copied from interface: SourceLocator
        Line number (one-origin) of end of range; unknown/unspecified is -1.
      • getEndColumn

        public int getEndColumn()
        Description copied from interface: SourceLocator
        Column (one-origin) of end of range; unknown/unspecified is -1.
      • isStableSourceLocation

        public boolean isStableSourceLocation()
        Description copied from interface: SourceLocator
        True if position is unlikely to change. True for an expression but not an input file.
      • setFile

        public void setFile(java.lang.String filename)
      • setLine

        public void setLine(java.lang.String filename,
         int line,
         int column)
      • setLine

        public void setLine(int lineno,
         int colno)
      • setLine

        public void setLine(int lineno)
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /