Class MethodInheritanceTree
java.lang.Object
org.hibernate.validator.ap.internal.classchecks.MethodInheritanceTree
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
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a set containing all the methods of the hierarchy.Returns a set containing all the overridden methods.Returns a set containing all the top level overridden methods.boolean
Checks if there are any overridden methods in the hierarchy.boolean
Checks if there are any parallel definitions of the method in the hierarchy.toString()
-
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
Returns a set containing all the methods of the hierarchy.- Returns:
- a set containing all the methods of the hierarchy
-
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
Returns a set containing all the top level overridden methods.- Returns:
- a set containing all the top level overridden methods
-
toString
-