ADSentenceStream.SentenceParser.TreeElement (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.formats.ad

## Class ADSentenceStream.SentenceParser.TreeElement

- java.lang.Object
- - opennlp.tools.formats.ad.ADSentenceStream.SentenceParser.TreeElement

- Direct Known Subclasses:
    ADSentenceStream.SentenceParser.Leaf, ADSentenceStream.SentenceParser.Node
  Enclosing class:
    ADSentenceStream.SentenceParser

      public abstract class ADSentenceStream.SentenceParser.TreeElement
      extends Object

  Represents a tree element, Node or Leaf

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TreeElement()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getLevel()`
    `String` | `getMorphologicalTag()`
    `String` | `getSyntacticTag()`
    `boolean` | `isLeaf()`
    `void` | `setLevel(int level)`
    `void` | `setMorphologicalTag(String morphologicalTag)`
    `void` | `setSyntacticTag(String syntacticTag)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TreeElement

          public TreeElement()

  - ### Method Detail

    - #### isLeaf

          public boolean isLeaf()

    - #### setSyntacticTag

          public void setSyntacticTag(String syntacticTag)

    - #### getSyntacticTag

          public String getSyntacticTag()

    - #### setLevel

          public void setLevel(int level)

    - #### getLevel

          public int getLevel()

    - #### setMorphologicalTag

          public void setMorphologicalTag(String morphologicalTag)

    - #### getMorphologicalTag

          public String getMorphologicalTag()

Copyright © 2026 The Apache Software Foundation. All rights reserved.