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
Nested Classes -
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.booleanChecks if there are any overridden methods in the hierarchy.booleanChecks 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:
trueif there are any overridden methods found,falseotherwise
-
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:
trueif there are any parallel definitions of the method in the hierarchy,falseotherwise
-
getTopLevelMethods
Returns a set containing all the top level overridden methods.- Returns:
- a set containing all the top level overridden methods
-
toString
-