|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.core.Locator
public class Locator
The locator is the container for the information about the name of a resource and the current line number.
| Constructor Summary | |
|---|---|
Locator(java.lang.String resource,
int lineNo,
java.lang.String currentLine,
int currentLinePointer)
Creates a new object. |
|
| Method Summary | |
|---|---|
Locator |
getCause()
Getter for cause. |
java.lang.String |
getLine()
Getter for the line. |
int |
getLineNumber()
Getter for the line number. |
int |
getLinePointer()
Getter for the line pointer. |
java.lang.String |
getResourceName()
Getter for the resource name. |
void |
setCause(Locator cause)
Setter for cause. |
java.lang.String |
toString()
Return a printable representation of this instance. |
java.lang.String |
toString(int causeLimit)
Return a printable representation of this instance including the cause. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Locator(java.lang.String resource,
int lineNo,
java.lang.String currentLine,
int currentLinePointer)
resource - the name of the resource; e.g. the file namelineNo - the line numbercurrentLine - the current line of inputcurrentLinePointer - the current position in the line of input| Method Detail |
|---|
public final Locator getCause()
public java.lang.String getLine()
public int getLineNumber()
public int getLinePointer()
public java.lang.String getResourceName()
null is returned.
nullpublic final void setCause(Locator cause)
cause - the cause to setpublic java.lang.String toString(int causeLimit)
causeLimit - the limit for the number of causes to be shown. If
negative then the optional, preceding continuation indicator (..)
is suppressed
toString()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||