Class ProtectedElement

java.lang.Object
org.springframework.aot.generator.ProtectedElement

public final class ProtectedElement extends Object
A Member that is non-public, with the related type.
Since:
6.0
Author:
Stephane Nicoll
  • Method Details

    • getType

      public Class<?> getType()
      Return the type that is non-public. For a plain protected member access, the type of the declaring class is used. Otherwise, the type in the member signature, such as a parameter type for an executable, or the return type of a field is used. If the type is generic, the type that is protected in the generic signature is used.
      Returns:
      the type that is not public
    • getMember

      @Nullable public Member getMember()
      Return the Member that is not publicly accessible.
      Returns:
      the member