Interface ConstructorElement

All Superinterfaces:
AnnotatedElement, AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, Described, Element, MemberElement, MethodElement, MutableAnnotationMetadataDelegate<Element>, Named
All Known Subinterfaces:
BeanConstructorElement
All Known Implementing Classes:
GroovyConstructorElement

public interface ConstructorElement extends MethodElement
Element for constructors.
Since:
1.0
Author:
graemerocher
  • Method Details

    • getName

      default String getName()
      Specified by:
      getName in interface Element
      Specified by:
      getName in interface Named
      Returns:
      The name of the element. For a type this represents the binary name.
    • getReturnType

      @NonNull default @NonNull ClassElement getReturnType()
      Specified by:
      getReturnType in interface MethodElement
      Returns:
      The return type of the method
    • hides

      default boolean hides(MemberElement memberElement)
      Description copied from interface: MemberElement
      Checks if this member element hides another.
      Specified by:
      hides in interface MemberElement
      Specified by:
      hides in interface MethodElement
      Parameters:
      memberElement - The possibly hidden element
      Returns:
      true if this member element hides passed field element
    • overrides

      default boolean overrides(MethodElement overridden)
      Description copied from interface: MethodElement
      Checks if this method element overrides another.
      Specified by:
      overrides in interface MethodElement
      Parameters:
      overridden - Possible overridden method
      Returns:
      true if this overrides passed method element