Class ElementsFinder
java.lang.Object
me.bristermitten.mittenlib.annotations.util.ElementsFinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllMethods(TypeElement rootElement) Get all the methods in a givenTypeElement, including inherited ones.getApplicableVariableElements(TypeElement rootElement) Get all theVariableElements in a givenTypeElementthat should be included in the generated config class.getPropertyMethods(TypeElement rootElement)
-
Constructor Details
-
ElementsFinder
-
-
Method Details
-
getApplicableVariableElements
Get all theVariableElements in a givenTypeElementthat should be included in the generated config class.This does not include fields with the
transientorstaticmodifiers, or fields inherited from superclasses.- Parameters:
rootElement- The element to find variables in- Returns:
- All the
VariableElements in the given element that are suitable for config generation
-
getAllMethods
Get all the methods in a givenTypeElement, including inherited ones. This will only return methods, not constructors or initializers.- Parameters:
rootElement- The type to search for methods- Returns:
- All the methods in the given type
-
getPropertyMethods
-