Interface Member

All Superinterfaces:
Annotatable
All Known Subinterfaces:
Field, Method
All Known Implementing Classes:
BuilderField, BuilderMethod, ClassProto.ReparentedMethod, DexBackedField, DexBackedMethod, FieldRewriter.RewrittenField, ImmutableField, ImmutableMethod, MethodRewriter.RewrittenMethod, PoolMethod, ReflectionConstructor, ReflectionField, ReflectionMethod

public interface Member extends Annotatable
This class represents a generic class member
  • Method Details

    • getDefiningClass

      @Nonnull String getDefiningClass()
      Gets the type of the class that defines this member.
      Returns:
      The type of the class that defines this member
    • getName

      @Nonnull String getName()
      Gets the name of this member.
      Returns:
      The name of this field
    • getAccessFlags

      int getAccessFlags()
      Gets the access flags for this member. This will be a combination of the AccessFlags.* flags that are marked as compatible for use with this type of member.
      Returns:
      The access flags for this member
    • getHiddenApiRestrictions

      @Nonnull Set<HiddenApiRestriction> getHiddenApiRestrictions()
      Gets the hidden api restrictions for this member. This will contain at most 1 normal flag (with isDomainSpecificApiFlag() = false), and 1 domain-specific api flag (with isDomainSpecificApiFlag() = true)
      Returns:
      A set of the hidden api restrictions for this member.