public class Location
extends java.lang.Object
Constructor and Description |
---|
Location(java.lang.String fileName,
int lineNumber,
java.lang.String className,
java.lang.String functionName) |
Location(java.lang.String fileName,
java.lang.String userPath,
int lineNumber,
java.lang.String className,
java.lang.String functionName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName() |
java.lang.String |
getFileName() |
java.lang.String |
getFunctionName() |
int |
getLineNumber() |
java.lang.String |
getMessagePrefix()
Returns a prefix of the form "filename:linenumber: ", or the empty string
if the filename is not known.
|
java.lang.String |
getUserPath() |
boolean |
isUnknown() |
java.lang.String |
toString() |
public static final Location UNKNOWN
public Location(java.lang.String fileName, int lineNumber, java.lang.String className, java.lang.String functionName)
public Location(java.lang.String fileName, java.lang.String userPath, int lineNumber, java.lang.String className, java.lang.String functionName)
public java.lang.String getFileName()
public java.lang.String getUserPath()
public int getLineNumber()
public java.lang.String getClassName()
public java.lang.String getFunctionName()
public java.lang.String getMessagePrefix()
public boolean isUnknown()
public java.lang.String toString()
toString
in class java.lang.Object