com.caucho.quercus
Class Location

java.lang.Object
  extended by com.caucho.quercus.Location

public class Location
extends java.lang.Object

Records the source file location of a statement or expression.


Field Summary
static Location UNKNOWN
           
 
Constructor Summary
Location(java.lang.String fileName, int lineNumber, java.lang.String className, java.lang.String functionName)
           
 
Method Summary
 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.
 boolean isUnknown()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final Location UNKNOWN
Constructor Detail

Location

public Location(java.lang.String fileName,
                int lineNumber,
                java.lang.String className,
                java.lang.String functionName)
Method Detail

getFileName

public java.lang.String getFileName()

getLineNumber

public int getLineNumber()

getClassName

public java.lang.String getClassName()

getFunctionName

public java.lang.String getFunctionName()

getMessagePrefix

public java.lang.String getMessagePrefix()
Returns a prefix of the form "filename:linenumber: ", or the empty string if the filename is not known.


isUnknown

public boolean isUnknown()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object