org.oclparser.internal.core.util
Class LineAdjuster

java.lang.Object
  extended byorg.oclparser.internal.core.util.LineAdjuster

public class LineAdjuster
extends java.lang.Object

Author:
Stefan

Constructor Summary
LineAdjuster()
           
 
Method Summary
static int getLine(java.lang.String oclText, int line)
          If the OCL file contains comments, then these comments aren't considered when setting the line number.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineAdjuster

public LineAdjuster()
Method Detail

getLine

public static int getLine(java.lang.String oclText,
                          int line)
If the OCL file contains comments, then these comments aren't considered when setting the line number.

Parameters:
oclText - the OCL source.
line - 0-based.
Returns:
the correct line (considering comments).