@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) |
java.util.stream.Stream<DLTree> |
children() |
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) |
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 addFirstChild(@Nullable DLTree d)
d - child to add in first positionpublic void addFirstChildren(@Nullable Collection<DLTree> d)
d - children to add in first positionpublic abstract void accept(uk.ac.manchester.cs.jfact.helpers.DLTreeVisitor v)
v - vpublic abstract <O> O accept(uk.ac.manchester.cs.jfact.helpers.DLTreeVisitorEx<O> v)
O - visitor typev - vpublic abstract void replace(DLTree toReplace, @Nullable DLTree replacement)
toReplace - toReplacereplacement - replacementpublic java.util.stream.Stream<DLTree> children()
public static boolean equalTrees(@Nullable DLTree t1, @Nullable DLTree t2)
t1 - t1t2 - t2public DLTree copy()
public boolean isCN()
public boolean isConst()
public boolean isName()
public boolean isCName()
Copyright © 2016 The University of Manchester. All rights reserved.