public abstract class Term extends Object implements Iterable<Term>
| Modifier and Type | Class and Description | 
|---|---|
class  | 
Term.TermIterator
 | 
| Constructor and Description | 
|---|
Term()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
accept(TermWalker walker)
Do a dispatch back to the given walker. 
 | 
abstract Term[] | 
children()
Obtain the childern Terms 
 | 
boolean | 
childrenTermEqual(Term t)
Answer whether the receiver's children is equal to the given Terms
 children. 
 | 
Term | 
findAttribute(String sFunctor)
Find the Term amoungst the children whose functor equals the
 given functor that has a singleton child. 
 | 
Term | 
findChild(String sFunctor)
Find the Term amoungst the children whose functor equals the
 given functor. 
 | 
abstract String | 
fullFormString()
Answer a String representation of the Term that is allowed to
 show more internal details than toString()
 which does not compress information. 
 | 
abstract String | 
getFunctor()
Obtain the functor representation of the Term. 
 | 
boolean | 
headChildrenTermEqual(Term t)
Find the Term amongst the children whose functor equals the
 given functor. 
 | 
boolean | 
isAtom()
Answer whether the receiver is an Atomic Term. 
 | 
boolean | 
isLeaf()
Answer whether the receiver has children. 
 | 
boolean | 
isNumber()
Answer whether the receiver is an Atomic Term representing a Number. 
 | 
Iterator<Term> | 
iterator()  | 
int | 
length()
Answer whether the length of the receivers children 
 | 
abstract Term | 
termAt(int index)
Obtain the child term at the given index. 
 | 
abstract boolean | 
termEqual(Term t)
Answer whether the receiver is equal to the given Term. 
 | 
abstract Term | 
withChild(Term t)
Join the receiver with the given child Term. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic abstract String getFunctor()
public abstract Term termAt(int index)
index - index of the child or functor to returnpublic abstract Term[] children()
public abstract Term withChild(Term t)
t - the term to join withpublic abstract boolean termEqual(Term t)
t - the Term to check for termEqualpublic abstract String fullFormString()
public boolean isLeaf()
public boolean isAtom()
public boolean isNumber()
public int length()
public Term findChild(String sFunctor)
sFunctor - the functor to search forpublic Term findAttribute(String sFunctor)
sFunctor - the functor to search forpublic boolean childrenTermEqual(Term t)
t - term whose children are to be checked for equalitypublic boolean headChildrenTermEqual(Term t)
t - the functor to search forpublic void accept(TermWalker walker)
walker - the TermWalker that implements the visitor for Terms