@PortedFrom(file="dltree.h", name="TsTTree") public abstract class DLTree extends Object implements Serializable
| 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 |
isCName() |
boolean |
isConst() |
boolean |
isName() |
boolean |
isNOT() |
boolean |
isTOP() |
abstract void |
replace(DLTree toReplace,
DLTree replacement) |
void |
setAncestor(DLTree r) |
Token |
token() |
String |
toString() |
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)
v - v@Nonnull public abstract <O> O accept(uk.ac.manchester.cs.jfact.helpers.DLTreeVisitorEx<O> v)
O - visitor typev - vpublic abstract void replace(DLTree toReplace, DLTree replacement)
toReplace - toReplacereplacement - replacementpublic static boolean equalTrees(DLTree t1, DLTree t2)
t1 - t1t2 - t2public boolean isCN()
public boolean isConst()
public boolean isName()
public boolean isCName()
Copyright © 2015 The University of Manchester. All rights reserved.