@PortedFrom(file="dltree.h", name="TsTTree") public abstract class DLTree extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DLTree |
ancestor |
protected List<DLTree> |
children
children collection
|
protected Lexeme |
elem
element in the tree node
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
accept(uk.ac.manchester.cs.jfact.helpers.DLTreeVisitor v) |
abstract <O> O |
accept(uk.ac.manchester.cs.jfact.helpers.DLTreeVisitorEx<O> v) |
void |
addChild(DLTree d) |
void |
addFirstChild(DLTree d) |
void |
addFirstChildren(Collection<DLTree> d) |
DLTree |
copy() |
Lexeme |
elem() |
boolean |
equals(Object obj) |
static boolean |
equalTrees(DLTree t1,
DLTree t2) |
DLTree |
getAncestor() |
abstract DLTree |
getChild() |
List<DLTree> |
getChildren() |
abstract DLTree |
getLeft() |
abstract DLTree |
getRight() |
int |
hashCode() |
boolean |
isAND() |
boolean |
isBOTTOM() |
boolean |
isCN()
check if DL tree is a concept-like name
|
boolean |
isConst() |
boolean |
isName() |
boolean |
isNOT() |
boolean |
isTOP() |
abstract void |
replace(DLTree toReplace,
DLTree replacement) |
void |
setAncestor(DLTree r) |
Token |
token() |
String |
toString() |
public DLTree(Lexeme l)
l - elementpublic DLTree(Token tok)
tok - public Token token()
public boolean isTOP()
public boolean isNOT()
public boolean isBOTTOM()
public boolean isAND()
public Lexeme elem()
public abstract DLTree getChild()
public abstract DLTree getLeft()
public abstract DLTree getRight()
public DLTree getAncestor()
public void setAncestor(DLTree r)
r - ancestorpublic void addChild(DLTree d)
d - child to addpublic void addFirstChild(DLTree d)
d - child to add in first positionpublic void addFirstChildren(Collection<DLTree> d)
d - children to add in first positionpublic abstract void accept(uk.ac.manchester.cs.jfact.helpers.DLTreeVisitor v)
public abstract <O> O accept(uk.ac.manchester.cs.jfact.helpers.DLTreeVisitorEx<O> v)
public static boolean equalTrees(DLTree t1, DLTree t2)
t1 - t2 - public DLTree copy()
public boolean isCN()
public boolean isConst()
public boolean isName()
Copyright © 2013 The University of Manchester. All Rights Reserved.