Interface MetaStaticImportable

All Superinterfaces:
MetaImportable
All Known Subinterfaces:
MetaField, MetaMethod, MetaStaticImportableMember
All Known Implementing Classes:
EnvironmentField, EnvironmentMethod, GeneratedField, GeneratedMethod

public interface MetaStaticImportable extends MetaImportable
Supertype of all entities that can appear in an import static statement.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns the import pattern that specifies this entity, without the prefix "static ".
    boolean
    Checks whether this entity does actually have the modifier static.
  • Method Details

    • getImportPattern

      default String getImportPattern()
      Specified by:
      getImportPattern in interface MetaImportable
      Returns:
      the full qualified name of this entity prefix with "static "
    • getStaticImportPattern

      String getStaticImportPattern()
      Returns the import pattern that specifies this entity, without the prefix "static ".
    • isStatic

      boolean isStatic()
      Checks whether this entity does actually have the modifier static. This method is for convenient use in assertions.
      Returns:
      true if this entity has the modifier static