projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add local variable information to DB store.
[cfb.git]
/
prod
/
net
/
jaekl
/
cfb
/
store
/
Location.java
diff --git
a/prod/net/jaekl/cfb/store/Location.java
b/prod/net/jaekl/cfb/store/Location.java
index 2cd91c80f70e5a81c5f5df4e8b00f97b55cd954b..1ffc7322522635999440f45ce8a10920884173f1 100644
(file)
--- a/
prod/net/jaekl/cfb/store/Location.java
+++ b/
prod/net/jaekl/cfb/store/Location.java
@@
-7,6
+7,7
@@
import net.jaekl.cfb.xml.SourceLine;
public class Location {
String m_className;
String m_methodName;
public class Location {
String m_className;
String m_methodName;
+ String m_methodRole;
int m_startLine;
int m_endLine;
int m_startLine;
int m_endLine;
@@
-20,6
+21,15
@@
public class Location {
init(method.getSourceLines());
m_className = method.getClassName();
m_methodName = method.getMethodName();
init(method.getSourceLines());
m_className = method.getClassName();
m_methodName = method.getMethodName();
+ m_methodRole = method.getRole();
+ }
+
+ public Location(BugMethod method, SourceLine sourceLine)
+ {
+ init(sourceLine);
+ m_className = method.getClassName();
+ m_methodName = method.getMethodName();
+ m_methodRole = method.getRole();
}
public Location(BugClass bugClass)
}
public Location(BugClass bugClass)
@@
-30,6
+40,7
@@
public class Location {
public String getClassName() { return m_className; }
public String getMethodName() { return m_methodName; }
public String getClassName() { return m_className; }
public String getMethodName() { return m_methodName; }
+ public String getMethodRole() { return m_methodRole; }
public int getStart() { return m_startLine; }
public int getEnd() { return m_endLine; }
public int getStart() { return m_startLine; }
public int getEnd() { return m_endLine; }
@@
-45,6
+56,7
@@
public class Location {
{
m_className = sourceLine.getClassName();
m_methodName = null;
{
m_className = sourceLine.getClassName();
m_methodName = null;
+ m_methodRole = null;
m_startLine = sourceLine.getStart();
m_endLine = sourceLine.getEnd();
}
m_startLine = sourceLine.getStart();
m_endLine = sourceLine.getEnd();
}