LBJ2.parse
Class LinkedChild

java.lang.Object
  extended by LBJ2.parse.LinkedChild
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
LinkedVector, Sentence, Word

public abstract class LinkedChild
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

A LinkedChild is the child of a LinkedVector. LinkedVectors use the methods of this interface to maintain links between parent and child.

See Also:
LinkedVector, Serialized Form

Field Summary
 int end
          The offset into the raw data input file at which this child ends.
 LinkedChild next
          A link to the next child in the parent vector.
 LinkedVector parent
          A link to this child's parent.
 LinkedChild previous
          A link to the previous child in the parent vector.
 int start
          The offset into the raw data input file at which this child starts.
 
Constructor Summary
protected LinkedChild()
          Does nothing.
  LinkedChild(int s, int e)
          Constructor that sets the byte offsets of this child.
protected LinkedChild(LinkedChild p)
          Useful when the information that this child represents is parsed forwards.
  LinkedChild(LinkedChild p, int s, int e)
          Useful when the information that this child represents is parsed forwards.
 
Method Summary
 java.lang.Object clone()
          Returns a shallow clone of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

public LinkedVector parent
A link to this child's parent.


previous

public LinkedChild previous
A link to the previous child in the parent vector.


next

public LinkedChild next
A link to the next child in the parent vector.


start

public int start
The offset into the raw data input file at which this child starts.


end

public int end
The offset into the raw data input file at which this child ends.

Constructor Detail

LinkedChild

protected LinkedChild()
Does nothing.


LinkedChild

protected LinkedChild(LinkedChild p)
Useful when the information that this child represents is parsed forwards.

Parameters:
p - The previous child in the parent vector.

LinkedChild

public LinkedChild(int s,
                   int e)
Constructor that sets the byte offsets of this child.

Parameters:
s - The offset at which this child starts.
e - The offset at which this child ends.

LinkedChild

public LinkedChild(LinkedChild p,
                   int s,
                   int e)
Useful when the information that this child represents is parsed forwards.

Parameters:
p - The previous child in the parent vector.
s - The offset at which this child starts.
e - The offset at which this child ends.
Method Detail

clone

public java.lang.Object clone()
Returns a shallow clone of this object.

Overrides:
clone in class java.lang.Object