org.cdgsoftware.icl.field
Class Position

java.lang.Object
  extended by org.cdgsoftware.icl.field.Position
All Implemented Interfaces:
Loggeable

public class Position
extends java.lang.Object
implements Loggeable

The Class Position.


Constructor Summary
Position()
          Instantiates a new position.
Position(int start, int end)
          Instantiates a new position.
 
Method Summary
 void dump(java.io.PrintStream p, java.lang.String indent)
           
 int getEnd()
          Gets the end.
 int getLength()
          Gets the length.
 int getStart()
          Gets the start.
 void setEnd(int end)
          Sets the end.
 void setStart(int start)
          Sets the start.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Position

public Position()
Instantiates a new position.


Position

public Position(int start,
                int end)
Instantiates a new position.

Parameters:
start - the start
end - the end
Method Detail

getStart

public int getStart()
Gets the start.

Returns:
the start

setStart

public void setStart(int start)
Sets the start.

Parameters:
start - the new start

getEnd

public int getEnd()
Gets the end.

Returns:
the end

setEnd

public void setEnd(int end)
Sets the end.

Parameters:
end - the new end

getLength

public int getLength()
Gets the length.

Returns:
the length

dump

public void dump(java.io.PrintStream p,
                 java.lang.String indent)
Specified by:
dump in interface Loggeable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object