public class Location {
String m_className;
String m_methodName;
+ String m_methodRole;
int m_startLine;
int m_endLine;
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 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; }
{
m_className = sourceLine.getClassName();
m_methodName = null;
+ m_methodRole = null;
m_startLine = sourceLine.getStart();
m_endLine = sourceLine.getEnd();
}