import net.jaekl.cfb.xml.SourceLine;
public class Location {
+ Long m_id;
String m_className;
String m_methodName;
String m_methodRole;
m_className = bugClass.getClassName();
}
+ public Location(Long id, String className, String methodName, String methodRole, long startLine, long endLine)
+ {
+
+ }
+
public String getClassName() { return m_className; }
public String getMethodName() { return m_methodName; }
public String getMethodRole() { return m_methodRole; }
init(sourceLines[0]);
}
}
+
+ private void init(SourceLine sourceLine)
+ {
+ init(sourceLine.getClassName(), sourceLine.getStart(), sourceLine.getEnd());
+ }
- private void init(SourceLine sourceLine)
+ private void init(String className, int startLine, int endLine)
{
- m_className = sourceLine.getClassName();
+ m_id = null;
+ m_className = className;
m_methodName = null;
m_methodRole = null;
- m_startLine = sourceLine.getStart();
- m_endLine = sourceLine.getEnd();
+ m_startLine = startLine;
+ m_endLine = endLine;
}
}