Class Reflection.PropertyPath

    • Method Detail

      • with

        public Reflection.PropertyPath with​(Comparable<? extends Serializable> node)
        Create a new property path composed of the nodes of the current property path with the given node added. E.g. if the current property path is "person" and the given node is "name", then this returns a new property path representing "person.name". Or, if the current property path is "list" and the given node is "0", then this returns a new property path representing "list[0]". Or, if the current property path is "persons[0]" and the given node is "name", then this returns a new property path representing "persons[0].name"
        Parameters:
        node - Node to extend the current property path with.
        Returns:
        A new property path composed of the nodes of the current property path added with the given node.
        Throws:
        NullPointerException - When node is null.
      • hashCode

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

        public String toString()
        Returns the property path as string, conform the EL rules.
        Overrides:
        toString in class Object