decouple nodejs filters + tests
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Thu, 8 Jan 2015 18:38:25 +0000 (21:38 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Thu, 8 Jan 2015 18:38:25 +0000 (21:38 +0300)
platform/lang-impl/src/com/intellij/execution/filters/FileHyperlinkParsedData.java [new file with mode: 0644]

diff --git a/platform/lang-impl/src/com/intellij/execution/filters/FileHyperlinkParsedData.java b/platform/lang-impl/src/com/intellij/execution/filters/FileHyperlinkParsedData.java
new file mode 100644 (file)
index 0000000..bab166e
--- /dev/null
@@ -0,0 +1,45 @@
+package com.intellij.execution.filters;
+
+import org.jetbrains.annotations.NotNull;
+
+public class FileHyperlinkParsedData {
+
+  private final String myFilePath;
+  private final int myDocumentLine;
+  private final int myDocumentColumn;
+  private final int myHyperlinkStartOffset;
+  private final int myHyperlinkEndOffset;
+
+  public FileHyperlinkParsedData(@NotNull String filePath,
+                                 int documentLine,
+                                 int documentColumn,
+                                 int hyperlinkStartOffset,
+                                 int hyperlinkEndOffset) {
+    myFilePath = filePath;
+    myDocumentLine = documentLine;
+    myDocumentColumn = documentColumn;
+    myHyperlinkStartOffset = hyperlinkStartOffset;
+    myHyperlinkEndOffset = hyperlinkEndOffset;
+  }
+
+  @NotNull
+  public String getFilePath() {
+    return myFilePath;
+  }
+
+  public int getDocumentLine() {
+    return myDocumentLine;
+  }
+
+  public int getDocumentColumn() {
+    return myDocumentColumn;
+  }
+
+  public int getHyperlinkStartOffset() {
+    return myHyperlinkStartOffset;
+  }
+
+  public int getHyperlinkEndOffset() {
+    return myHyperlinkEndOffset;
+  }
+}