Interface ElementUtils

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.lang.model.util.Elements

        javax.lang.model.util.Elements.Origin
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      static ElementUtils create​(javax.annotation.processing.ProcessingEnvironment processingEnvironment, VersionInformation info, javax.lang.model.element.TypeElement mapperElement)  
      java.util.List<javax.lang.model.element.ExecutableElement> getAllEnclosedExecutableElements​(javax.lang.model.element.TypeElement element)
      Finds all executable elements within the given type element, including executable elements defined in super classes and implemented interfaces.
      java.util.List<javax.lang.model.element.VariableElement> getAllEnclosedFields​(javax.lang.model.element.TypeElement element)
      Finds all variable elements within the given type element, including variable elements defined in super classes and implemented interfaces and including the fields in the .
      • Methods inherited from interface javax.lang.model.util.Elements

        getAllAnnotationMirrors, getAllMembers, getAllModuleElements, getAllPackageElements, getAllTypeElements, getBinaryName, getConstantExpression, getDocComment, getElementValuesWithDefaults, getModuleElement, getModuleOf, getName, getOrigin, getOrigin, getOrigin, getPackageElement, getPackageElement, getPackageOf, getTypeElement, getTypeElement, hides, isBridge, isDeprecated, isFunctionalInterface, overrides, printElements
    • Method Detail

      • create

        static ElementUtils create​(javax.annotation.processing.ProcessingEnvironment processingEnvironment,
                                   VersionInformation info,
                                   javax.lang.model.element.TypeElement mapperElement)
      • getAllEnclosedExecutableElements

        java.util.List<javax.lang.model.element.ExecutableElement> getAllEnclosedExecutableElements​(javax.lang.model.element.TypeElement element)
        Finds all executable elements within the given type element, including executable elements defined in super classes and implemented interfaces. Methods defined in Object, implementations of Object.equals(Object) and private methods are ignored
        Parameters:
        element - the element to inspect
        Returns:
        the executable elements usable in the type
      • getAllEnclosedFields

        java.util.List<javax.lang.model.element.VariableElement> getAllEnclosedFields​(javax.lang.model.element.TypeElement element)
        Finds all variable elements within the given type element, including variable elements defined in super classes and implemented interfaces and including the fields in the .
        Parameters:
        element - the element to inspect
        Returns:
        the executable elements usable in the type