Add ability to load previously found bugs back out of the database.
[cfb.git] / prod / net / jaekl / cfb / xml / BugMethod.java
index 33c615a858780cd79c0f76a5fe9d49412b0aa692..f05c510af39ddd412df0744439cb3edcb445b032 100644 (file)
@@ -37,8 +37,18 @@ public class BugMethod extends ParseResult {
                m_sourceLines = new ArrayList<SourceLine>();
        }
        
+       public BugMethod(Long id, String methodName, String methodRole) {
+               super(TAG, INTERNAL, EXTERNAL);
+               m_className = null;
+               m_methodName = methodName;
+               m_role = methodRole;
+               m_isStatic = false;
+               m_sourceLines = new ArrayList<SourceLine>();
+       }
+       
        public String getClassName() { return m_className; }
        public String getMethodName() { return m_methodName; }
+       public String getRole() { return m_role; }
        public SourceLine[] getSourceLines() { return m_sourceLines.toArray(new SourceLine[m_sourceLines.size()]); }
        
        @Override