Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.stanford.nlp.movetrees
Class EmptyTreeLeaf<EmptyType>

    java.lang.Object
      java.util.AbstractCollection<Tree>
          edu.stanford.nlp.trees.Tree
              edu.stanford.nlp.trees.LabeledScoredTreeLeaf
                  edu.stanford.nlp.movetrees.EmptyTreeLeaf<EmptyType>

Type Parameters:
  `EmptyType` -

All Implemented Interfaces:
  Label, Labeled, Scored, Serializable, Iterable<Tree>, Collection<Tree>

    public class EmptyTreeLeaf<EmptyType>

extends LabeledScoredTreeLeaf

Author:
  Roger Levy, Sarah Spikes (sdspikes@cs.stanford.edu) (Templatization)
See Also:
  Serialized Form

Field Summary

Fields inherited from class edu.stanford.nlp.trees.Tree
`DISPLAY_SCORES, EMPTY_TREE_ARRAY`

Constructor Summary
`EmptyTreeLeaf(Label label, EmptyType type)` Create a leaf parse tree with given word.
`EmptyTreeLeaf(Label label, EmptyType type, Tree t)` Create a leaf parse tree with given word.

Method Summary
`EmptyType` | `emptyType()`
`List<LabeledWord>` | `labeledYield(List<LabeledWord> y)` A `EmptyTreeLeaf` is invisible in the tagged yield
`void` | `setEmptyType(EmptyType o)`
`void` | `setTraceTo(Tree t)`
`String` | `toString()` prints the trace, plus the label and the yield of the pointed-to constituent
`Tree` | `traceTo()`
`TreeFactory` | `treeFactory()` major yuk here.
`
`<T> List<T>`
` | `yield(List<T> y)` A `EmptyTreeLeaf` is invisible in the yield

Methods inherited from class edu.stanford.nlp.trees.LabeledScoredTreeLeaf
`addChild, addChild, children, factory, factory, insertDtr, isLeaf, label, score, setChild, setChildren, setLabel, setScore, toStringBuilder`

Methods inherited from class edu.stanford.nlp.trees.Tree
`ancestor, cCommands, constituents, constituents, deepCopy, deepCopy, deeperCopy, deeperCopy, deeperCopy, dependencies, dependencies, dependencies, dependencies, depth, depth, dominates, dominationPath, equals, firstChild, flatten, flatten, getChild, getChildrenAsList, getLeaves, getLeaves, getNodeNumber, getSpan, hashCode, headPreTerminal, headTerminal, headTerminal, indentedListPrint, indentedListPrint, indexLeaves, indexOf, isPhrasal, isPrePreTerminal, isPreTerminal, isUnaryRewrite, iterator, joinNode, labeledYield, labelFactory, labels, lastChild, leftCharEdge, localTree, localTrees, mapDependencies, mapDependencies, nodeNumber, nodeString, numChildren, parent, parent, pathNodeToNode, pennPrint, pennPrint, pennPrint, pennString, percolateHeads, postOrderNodeList, preOrderNodeList, preTerminalYield, preTerminalYield, printLocalTree, printLocalTree, prune, prune, removeChild, rightCharEdge, setChildren, setFromString, setLabels, setSpans, setValue, siblings, size, skipRoot, spliceOut, spliceOut, subTreeList, subTrees, subTrees, taggedDependencies, taggedDependencies, taggedDependencies, taggedDependencies, taggedYield, taggedYield, toStructureDebugString, transform, transform, upperMostUnary, value, valueOf, valueOf, yield, yield`

Methods inherited from class java.util.AbstractCollection
`add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### EmptyTreeLeaf

    public EmptyTreeLeaf(Label label,
                         EmptyType type,
                         Tree t)

  Create a leaf parse tree with given word.

  Parameters:
    `label` - the `Label` representing the word for this new tree leaf.
    `t` - the antecedent returned by `traceTo()`

### EmptyTreeLeaf

    public EmptyTreeLeaf(Label label,
                         EmptyType type)

  Create a leaf parse tree with given word.

  Parameters:
    `label` - the `Label` representing the word for this new tree leaf.

Method Detail

### emptyType

    public EmptyType emptyType()

### setEmptyType

    public void setEmptyType(EmptyType o)

### traceTo

    public Tree traceTo()

### setTraceTo

    public void setTraceTo(Tree t)

### yield

    public <T> List<T> yield(List<T> y)

  A `EmptyTreeLeaf` is invisible in the yield

  Overrides:
    `yield` in class `Tree`
  Parameters:
    `y` - The list in which the yield of the tree will be placed. Normally, this will be empty when the routine is called, but if not, the new yield is added to the end of the list.
  Returns:
    a `List` of the data in the tree's leaves.

### labeledYield

    public List<LabeledWord> labeledYield(List<LabeledWord> y)

  A `EmptyTreeLeaf` is invisible in the tagged yield

  Overrides:
    `labeledYield` in class `Tree`

### toString

    public String toString()

  prints the trace, plus the label and the yield of the pointed-to constituent

  Specified by:
    `toString` in interface `Label`
  Overrides:
    `toString` in class `LabeledScoredTreeLeaf`
  Returns:
    Node's label in String form

### treeFactory

    public TreeFactory treeFactory()

  major yuk here. Reproduces the emptyType and traceTo from the leaf out of which the treeFactory is vended.

  Overrides:
    `treeFactory` in class `LabeledScoredTreeLeaf`
  Returns:
    a factory to produce labeled, scored trees

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Stanford NLP Group