X-Git-Url: http://jaekl.net/gitweb/?a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2Fxml%2FSourceLine.java;h=e5e82f6aa3e8e88f47042bdf9795dfee1049e668;hb=7ac6be132ecd6872971a1de56f033b4434d3173a;hp=c719529e2d9231c1a396253174571c932767ca0b;hpb=5bc9bbe3fd54b9fc7aa3b92d2d37e95c41b9645a;p=cfb.git diff --git a/prod/net/jaekl/cfb/xml/SourceLine.java b/prod/net/jaekl/cfb/xml/SourceLine.java index c719529..e5e82f6 100644 --- a/prod/net/jaekl/cfb/xml/SourceLine.java +++ b/prod/net/jaekl/cfb/xml/SourceLine.java @@ -28,16 +28,20 @@ public class SourceLine extends ParseResult { m_start = m_end = (-1); } + public String getClassName() { return m_className; } + public int getStart() { return m_start; } + public int getEnd() { return m_end; } + @Override public void handleMainAttributes(Attributes attr) throws MissingAttributeException { String scratch; m_className = getRequiredAttr(TAG, attr, ATTR_CLASS_NAME); - scratch = getRequiredAttr(TAG, attr, ATTR_START); + scratch = getOptionalAttr(attr, ATTR_START, "-1"); m_start = Integer.parseInt(scratch); - scratch = getRequiredAttr(TAG, attr, ATTR_END); + scratch = getOptionalAttr(attr, ATTR_END, "-1"); m_end = Integer.parseInt(scratch); }