ISyntaxTree Interface Reference

Inheritance diagram for ISyntaxTree:
Collaboration diagram for ISyntaxTree:

List of all members.

Public Methods

List< ITerminalNodegetDirectTerminalChildren ()
List< INonTerminalNodegetDirectNonTerminalChildren ()
List< ITerminalNodegetAllTerminalChildren ()
Collection< ISyntaxNodegetAllChildren ()
List< ISyntaxNodegetDirectChildren ()
INonTerminalNode getParent ()
boolean isTerminalNode ()
List< ISyntaxNodegetPathTo (INonTerminalNode nodeOnParentPath)
void visit (ISyntaxTreeVisitor visitor)
List< ITreeConstituentgetConstituents ()
boolean cCommands (ISyntaxNode other)
boolean dominates (ISyntaxNode other)
boolean isPhrasal ()
String getLabel ()
void setId (long id)

Package Functions

long getId ()

Method Details

boolean cCommands ( ISyntaxNode  other) [inherited]

Implemented in SyntaxNode< T >.

boolean dominates ( ISyntaxNode  other) [inherited]

Implemented in SyntaxNode< T >, and TerminalNode< T >.

Collection<ISyntaxNode> getAllChildren ( ) [inherited]

Returns all nodes in the subtree, excluding the root of the subtree.

Returns:

Implemented in NonTerminalNode< T >.

List<ITerminalNode> getAllTerminalChildren ( ) [inherited]

Returns all terminal nodes of the tree

Returns:

Implemented in NonTerminalNode< T >.

List<ITreeConstituent> getConstituents ( ) [inherited]

Returns the list of ITreeConstituent of this node. Never returns null.

Returns:

Implemented in TerminalNode< T >.

List<ISyntaxNode> getDirectChildren ( ) [inherited]

Returns all direct children of the node.

Returns:

Implemented in NonTerminalNode< T >.

List<INonTerminalNode> getDirectNonTerminalChildren ( ) [inherited]

Returns all direct nonterminal child nodes of the tree.

Returns:

Implemented in NonTerminalNode< T >.

List<ITerminalNode> getDirectTerminalChildren ( ) [inherited]

Returns all direct terminal child nodes of the tree

Returns:

Implemented in NonTerminalNode< T >.

long getId ( ) [package, inherited]
String getLabel ( ) [inherited]

Returns the label of this token, which can be any kind of string (except null), mainly used for display-reasons only. Note: Components MUST NOT assume that any kind of label (like 'word' or else) is returned by this method.

Implemented in LabeledAnnotation, TerminalNode< T >, TEIDramaSpeaker, TEIDramaSpeechAct, TEIDramaStage, JodaDateTime, JodaInterval, JodaPeriod, Timex, Tweet, and TwitterEntity.

INonTerminalNode getParent ( ) [inherited]

Returns the parent node of this node, which is either a INonTerminalNode, or null (in case of the root node).

Returns:

Implemented in SyntaxNode< T >.

List<ISyntaxNode> getPathTo ( INonTerminalNode  nodeOnParentPath) [inherited]

Returns the path from the current node to the given node. The current node is not included in the path, but the referenced nodeOnParentPath is. If this method is called on the root node, the list is empty. If the method is called on a node with the node itself as argument, or with an argument which is not a node on the path to the root, the list is empty. If parameter nodeOnParentPath is null, the path to the root node will be returned.

Parameters:
nodeOnParentPath
Returns:

Implemented in SyntaxNode< T >.

boolean isPhrasal ( ) [inherited]
boolean isTerminalNode ( ) [inherited]

Returns true if the node is a ITerminalNode, false otherwise.

Returns:

Implemented in NonTerminalNode< T >, and TerminalNode< T >.

void visit ( ISyntaxTreeVisitor  visitor) [inherited]

To traverse the tree structure from the given node on, use an ISyntaxTreeVisitor on the current node.

See also:
ISyntaxTreeVisitor for details
Parameters:
visitor

Implemented in SyntaxNode< T >.