public class SourceLocation extends Object
Constructor and Description |
---|
SourceLocation(String pFullyQualifiedMethod,
String pFileName,
int pLine)
Create a Source Location
|
Modifier and Type | Method and Description |
---|---|
String |
getClazz()
Getter for the Class name (named this way because of Java reserved word 'class')
|
String |
getFileName()
Getter for the Source file name
|
String |
getFullyQualifiedClass()
Getter for the fully qualified Class name (i.e.
|
String |
getFullyQualifiedMethod()
Getter for the fully qualified method name (i.e.
|
int |
getLineNumber()
Getter for the line number inside source file name
|
String |
getMethod()
Getter for the Method name
|
String |
getPackageName()
Getter for the fully qualified Package name
|
void |
setFullyQualifiedClass(String pFullyQualifiedClass)
Setter for the fully qualified Class name (i.e.
|
void |
setMethod(String pMethod)
Setter for the Method name
|
String |
toString()
Returns a string representation of the object, formated as:
fullyQualifiedMethod (fileName :lineNumber ) |
String |
toUserString()
Returns a string representation of the object, that can be displayed to the user.
|
public int getLineNumber()
lineNumber
public String getFileName()
fileName
public String getPackageName()
packageName
public String getFullyQualifiedClass()
fullyQualifiedClass
public void setFullyQualifiedClass(String pFullyQualifiedClass)
pFullyQualifiedClass
- Value of attribute fullyQualifiedClass
public String getClazz()
clazz
public void setMethod(String pMethod)
pMethod
- Value of attribute method
public String getFullyQualifiedMethod()
fullyQualifiedMethod
public String toString()
fullyQualifiedMethod
(fileName
:lineNumber
)toString
in class Object
Object.toString()
public String toUserString()
- "
fullyQualifiedMethod
(fileName
:lineNumber
)"
if fileName
!= 0 and lineNumber
>= 0
- "
fullyQualifiedMethod
(Unknown Source)"
if fileName
== 0 or lineNumber
< 0
Object.toString()
Copyright © 2017 LightySoft. All rights reserved. [v1.0.0 (June 29th, 2015)]