Class MethodInheritanceTree

java.lang.Object
org.hibernate.validator.ap.internal.classchecks.MethodInheritanceTree

public class MethodInheritanceTree extends Object
Represents an inheritance tree of overridden methods. In the head of the tree a node from which we start looking for overridden methods is located. Also contains some useful methods to walk around overridden methods.
Author:
Marko Bekhta, Guillaume Smet
  • Method Details

    • hasOverriddenMethods

      public boolean hasOverriddenMethods()
      Checks if there are any overridden methods in the hierarchy.
      Returns:
      true if there are any overridden methods found, false otherwise
    • getAllMethods

      public Set<ExecutableElement> getAllMethods()
      Returns a set containing all the methods of the hierarchy.
      Returns:
      a set containing all the methods of the hierarchy
    • getOverriddenMethods

      public Set<ExecutableElement> getOverriddenMethods()
      Returns a set containing all the overridden methods.
      Returns:
      a set containing all the overridden methods
    • hasParallelDefinitions

      public boolean hasParallelDefinitions()
      Checks if there are any parallel definitions of the method in the hierarchy.
      Returns:
      true if there are any parallel definitions of the method in the hierarchy, false otherwise
    • getTopLevelMethods

      public Set<ExecutableElement> getTopLevelMethods()
      Returns a set containing all the top level overridden methods.
      Returns:
      a set containing all the top level overridden methods
    • toString

      public String toString()
      Overrides:
      toString in class Object