hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahue...@apache.org
Subject svn commit: r521478 - in /hivemind/hivemind2/trunk: annotations/src/java/org/apache/hivemind/annotations/internal/AnnotatedModuleLocation.java framework/src/java/org/apache/hivemind/Location.java
Date Thu, 22 Mar 2007 21:26:46 GMT
Author: ahuegen
Date: Thu Mar 22 14:26:45 2007
New Revision: 521478

URL: http://svn.apache.org/viewvc?view=rev&rev=521478
Log:
Reintroduced Line and Column in Location for better backward compatibility

Modified:
    hivemind/hivemind2/trunk/annotations/src/java/org/apache/hivemind/annotations/internal/AnnotatedModuleLocation.java
    hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/Location.java

Modified: hivemind/hivemind2/trunk/annotations/src/java/org/apache/hivemind/annotations/internal/AnnotatedModuleLocation.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/annotations/src/java/org/apache/hivemind/annotations/internal/AnnotatedModuleLocation.java?view=diff&rev=521478&r1=521477&r2=521478
==============================================================================
--- hivemind/hivemind2/trunk/annotations/src/java/org/apache/hivemind/annotations/internal/AnnotatedModuleLocation.java
(original)
+++ hivemind/hivemind2/trunk/annotations/src/java/org/apache/hivemind/annotations/internal/AnnotatedModuleLocation.java
Thu Mar 22 14:26:45 2007
@@ -99,4 +99,20 @@
         return getPosition();
     }
 
+    /**
+     * @see org.apache.hivemind.Location#getColumnNumber()
+     */
+    public int getColumnNumber()
+    {
+        return -1;
+    }
+
+    /**
+     * @see org.apache.hivemind.Location#getLineNumber()
+     */
+    public int getLineNumber()
+    {
+        return -1;
+    }
+
  }

Modified: hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/Location.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/Location.java?view=diff&rev=521478&r1=521477&r2=521478
==============================================================================
--- hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/Location.java (original)
+++ hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/Location.java Thu Mar
22 14:26:45 2007
@@ -31,8 +31,21 @@
     
     /**
      * A position inside the resource. The format of the position
-     * is implementation specific.
+     * is implementation specific. It should include linenumber and column
+     * if known.
      */
     public String getPosition();
+    
+    /**
+     * The line within the resource containing the location,
+     * or -1 if the line number is not known.
+     * 
+     */
+    public int getLineNumber();
+    
+    /**
+     * The column number, or -1 if not known.
+     */
+    public int getColumnNumber();
     
 }



Mime
View raw message