NativeStackCallInfopublic final class NativeStackCallInfo extends Object Represents a stack call. This is used to return all of the call
information as one object. |
Fields Summary |
---|
private static final Pattern | SOURCE_NAME_PATTERN | private String | mLibraryname of the library | private String | mMethodname of the method | private String | mSourceFilename of the source file + line number in the format
<sourcefile>:<linenumber> | private int | mLineNumber |
Constructors Summary |
---|
public NativeStackCallInfo(String lib, String method, String sourceFile)Basic constructor with library, method, and sourcefile information
mLibrary = lib;
mMethod = method;
Matcher m = SOURCE_NAME_PATTERN.matcher(sourceFile);
if (m.matches()) {
mSourceFile = m.group(1);
try {
mLineNumber = Integer.parseInt(m.group(2));
} catch (NumberFormatException e) {
// do nothing, the line number will stay at -1
}
} else {
mSourceFile = sourceFile;
}
|
Methods Summary |
---|
public java.lang.String | getLibraryName()Returns the name of the library name.
return mLibrary;
| public int | getLineNumber()Returns the line number, or -1 if unknown.
return mLineNumber;
| public java.lang.String | getMethodName()Returns the name of the method.
return mMethod;
| public java.lang.String | getSourceFile()Returns the name of the source file.
return mSourceFile;
|
|