|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.spatial.util.CodeLocation
public class CodeLocation
Implements the EventLocation interface for getting error location in the code: class name and method name.
Field Summary |
---|
Fields inherited from interface com.ibm.spatial.EventLocation |
---|
CODE |
Constructor Summary | |
---|---|
CodeLocation()
|
|
CodeLocation(java.lang.String className,
java.lang.String methodName)
|
Method Summary | |
---|---|
int |
getColumnNumber()
This method returns EventLocation.CODE to indicate that this object refers to code rather than data location. |
java.lang.String |
getEntityId()
The return value is the name of the class where the event is triggered. |
int |
getLineNumber()
Return -1. |
java.lang.String |
getSubEntityId()
The return value is the name of the method in which the event is triggered. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CodeLocation()
public CodeLocation(java.lang.String className, java.lang.String methodName)
Method Detail |
---|
public java.lang.String getEntityId()
The return value is the name of the class where the event is triggered.
getEntityId
in interface EventLocation
EventLocation.CODE
public java.lang.String getSubEntityId()
The return value is the name of the method in which the event is triggered.
getSubEntityId
in interface EventLocation
EventLocation.CODE
public int getLineNumber()
Return -1. This implementation doesn't hold line number information.
getLineNumber
in interface EventLocation
EventLocation.getColumnNumber()
public int getColumnNumber()
getColumnNumber
in interface EventLocation
EventLocation.getLineNumber()
,
EventLocation.CODE
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |