Class jkp.KifSeq
All Packages Class Hierarchy This Package Previous Next Index
Class jkp.KifSeq
java.lang.Object
|
+----jkp.KifObj
|
+----jkp.KifSeq
- public class KifSeq
- extends KifObj
The class for KIF object sequence, such as term sequence,
sentence sequence, etc. A very important class in this parser.
- Author:
- Xiaocheng LUAN
-
KifSeq()
-
-
KifSeq(KifObj)
- Create an instance of KifSeq with only one object in the sequence.
-
KifSeq(KifObj, KifSeq)
- Create an instance of KifSeq with the given object as the first
object in the sequence, and objects in the given sequence as the
subsequent object in the sequence.
-
KifSeq(KifSeq, KifObj)
- Append the given object to the given sequence to get a new sequence.
-
KifSeq(KifSeq)
- Create a new copy of the given sequence.
-
append(KifObj)
-
-
append(KifSeq)
-
-
car()
-
-
cdr()
-
-
isEmpty()
-
-
ithObj(int)
-
-
size()
-
-
toString()
-
KifSeq
public KifSeq()
KifSeq
public KifSeq(KifObj obj)
- Create an instance of KifSeq with only one object in the sequence.
- Parameters:
- obj - The only one object in the sequence.
KifSeq
public KifSeq(KifObj obj,
KifSeq seq)
- Create an instance of KifSeq with the given object as the first
object in the sequence, and objects in the given sequence as the
subsequent object in the sequence.
- Parameters:
- obj - the first object in the created sequence.
- seq - the objects of which will be the second part of the new
sequence.
KifSeq
public KifSeq(KifSeq seq,
KifObj obj)
- Append the given object to the given sequence to get a new sequence.
KifSeq
public KifSeq(KifSeq seq)
- Create a new copy of the given sequence.
ithObj
public KifObj ithObj(int i) throws KifRTException
- Returns:
- return the ith Kif object in the sequence.
append
public void append(KifObj obj)
append
public void append(KifSeq seq)
isEmpty
public boolean isEmpty()
car
public KifObj car()
- Returns:
- Return the first element of the sequence.
cdr
public KifSeq cdr()
- Returns:
- Return the subsquence(from 2nd element to end) of the sequence.
size
public int size()
toString
public String toString()
- Overrides:
- toString in class KifObj
All Packages Class Hierarchy This Package Previous Next Index