Interface LabeledItem

All Superinterfaces:
GroundedValue, Item, Sequence
All Known Implementing Classes:
LabeledArrayItem, LabeledFunctionItem, LabeledMapItem

public interface LabeledItem extends Item
A LabeledItem represents an item together with a label. Most operations on a labeledItem simply delegate to the subject item.

Because of the widespread use of tests such as XX instanceof NodeInfo, concrete implementations of LabeledItem are subclasses of NodeInfo, AtomicValue, etc

  • Method Details

    • getLabel

      MapItem getLabel()
      Get the label of this value, typically, information about the containing maps and arrays in the containing tree
      Specified by:
      getLabel in interface Item
      Returns:
      the associated Pedigree.
    • getSubject

      Item getSubject()
      Get the subject item without its label
      Returns:
      the subject item