Package hydra.paths

Class SubtermProperty

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SubtermProperty>

    public class SubtermProperty
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<SubtermProperty>
    A link from a node to a leaf term (literal, unit, projection, unwrap, or an unbound variable)
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.paths.SubtermProperty type.
      • PATH

        public static final Name PATH
        Name of the hydra.paths.SubtermProperty.path field.
      • TARGET

        public static final Name TARGET
        Name of the hydra.paths.SubtermProperty.target field.
      • path

        public final SubtermPath path
        The subterm path at which the leaf term occurs
      • target

        public final Term target
        The leaf term
    • Constructor Detail

      • SubtermProperty

        public SubtermProperty​(SubtermPath path,
                               Term target)
        Constructs an immutable SubtermProperty.
        Parameters:
        path - The subterm path at which the leaf term occurs
        target - The leaf term
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object