Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.w3c.flute.parser
Class LocatorImpl  view LocatorImpl download LocatorImpl.java

java.lang.Object
  extended byorg.w3c.flute.parser.LocatorImpl
All Implemented Interfaces:
org.w3c.css.sac.Locator

public class LocatorImpl
extends java.lang.Object
implements org.w3c.css.sac.Locator

Version:
$Revision: 1.2 $

Field Summary
(package private)  int column
           
(package private)  int line
           
(package private)  java.lang.String uri
           
private static boolean W3CDebug
           
 
Constructor Summary
LocatorImpl(Parser p)
          Creates a new LocatorImpl
LocatorImpl(Parser p, int line, int column)
          Reinitializes a LocatorImpl
LocatorImpl(Parser p, Token tok)
          Reinitializes a LocatorImpl
 
Method Summary
 int getColumnNumber()
          Return the column number where the current document event ends.
 int getLineNumber()
          Return the line number where the current document event ends.
 java.lang.String getURI()
          Return the URI for the current document event.
 LocatorImpl reInit(Parser p)
          Reinitializes a LocatorImpl
 LocatorImpl reInit(Parser p, int line, int column)
          Reinitializes a LocatorImpl
 LocatorImpl reInit(Parser p, Token tok)
          Reinitializes a LocatorImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

W3CDebug

private static boolean W3CDebug

uri

java.lang.String uri

line

int line

column

int column
Constructor Detail

LocatorImpl

public LocatorImpl(Parser p)
Creates a new LocatorImpl


LocatorImpl

public LocatorImpl(Parser p,
                   Token tok)
Reinitializes a LocatorImpl


LocatorImpl

public LocatorImpl(Parser p,
                   int line,
                   int column)
Reinitializes a LocatorImpl

Method Detail

getURI

public java.lang.String getURI()
Description copied from interface: org.w3c.css.sac.Locator
Return the URI for the current document event.

The parser must resolve the URI fully before passing it to the application.

Specified by:
getURI in interface org.w3c.css.sac.Locator

getLineNumber

public int getLineNumber()
Description copied from interface: org.w3c.css.sac.Locator
Return the line number where the current document event ends. Note that this is the line position of the first character after the text associated with the document event.

Specified by:
getLineNumber in interface org.w3c.css.sac.Locator

getColumnNumber

public int getColumnNumber()
Description copied from interface: org.w3c.css.sac.Locator
Return the column number where the current document event ends. Note that this is the column number of the first character after the text associated with the document event. The first column in a line is position 1.

Specified by:
getColumnNumber in interface org.w3c.css.sac.Locator

reInit

public LocatorImpl reInit(Parser p)
Reinitializes a LocatorImpl


reInit

public LocatorImpl reInit(Parser p,
                          Token tok)
Reinitializes a LocatorImpl


reInit

public LocatorImpl reInit(Parser p,
                          int line,
                          int column)
Reinitializes a LocatorImpl