public class SimpleDependencyRelation extends Object implements DependencyRelation
DependencyRelation
implementation holds both related nodes
and their relation.Constructor and Description |
---|
SimpleDependencyRelation(DependencyTreeNode headNode,
String relation,
DependencyTreeNode dependent)
Creates a
SimpleDependencyRelation . |
Modifier and Type | Method and Description |
---|---|
DependencyTreeNode |
dependentNode()
Returns the dependent node that is related to the head node.
|
boolean |
equals(Object o) |
int |
hashCode() |
DependencyTreeNode |
headNode()
Returns the head node on which the second node has dependent relation.
|
String |
relation()
Returns the relation the the current has with the next token in a
DependencyPath . |
String |
toString() |
public SimpleDependencyRelation(DependencyTreeNode headNode, String relation, DependencyTreeNode dependent)
SimpleDependencyRelation
.public DependencyTreeNode dependentNode()
dependentNode
in interface DependencyRelation
public DependencyTreeNode headNode()
headNode
in interface DependencyRelation
public String relation()
DependencyPath
.relation
in interface DependencyRelation
Copyright © 2012. All Rights Reserved.