Class ElementHelper

java.lang.Object
pro.axenix_innovation.axenapi.utils.ElementHelper

public class ElementHelper extends Object
  • Constructor Details

  • Method Details

    • existsDtoInParameters

      public boolean existsDtoInParameters(ExecutableElement executableElement)
    • isPayload

      public boolean isPayload(VariableElement variableElement)
    • getPayloadVariableElement

      public VariableElement getPayloadVariableElement(ExecutableElement method)
    • isArrayTypeMirror

      public boolean isArrayTypeMirror(TypeMirror typeMirror)
    • isStringOrEnumTypeMirror

      public boolean isStringOrEnumTypeMirror(TypeMirror typeMirror)
    • getClassNameByTypeMirror

      public String getClassNameByTypeMirror(TypeMirror typeMirror)
    • getPackageNameByTypeMirror

      public String getPackageNameByTypeMirror(TypeMirror typeMirror)
    • getQualifiedClassNameByTypeMirror

      public String getQualifiedClassNameByTypeMirror(TypeMirror typeMirror)
    • getReturnedTypeMirror

      public TypeMirror getReturnedTypeMirror(ExecutableElement method)
    • getAnnotationMirrorByAnnotation

      public AnnotationMirror getAnnotationMirrorByAnnotation(Element typeElement, Class<?> annotationClass)
    • getAnnotationValue

      public TypeMirror getAnnotationValue(AnnotationMirror annotationMirror, String key)
    • findAnnotationValue

      public <T> T findAnnotationValue(Class<T> clazz, AnnotationMirror annotationMirror, String key)
    • findListAnnotationValue

      public <T> List<T> findListAnnotationValue(Class<T> clazz, AnnotationMirror annotationMirror, String key)
    • enumElementExists

      public boolean enumElementExists(TypeMirror enumTypeMirror, String enumElement)
    • checkMirrorTypeContainsField

      public boolean checkMirrorTypeContainsField(TypeMirror typeMirror, String requiredProperty)