Class ModifierUtils

java.lang.Object
org.hibernate.models.internal.ModifierUtils

public class ModifierUtils extends Object
Fills-in non-public aspects of the Modifier class
  • Field Details

  • Method Details

    • resolveVisibility

      public static MemberDetails.Visibility resolveVisibility(int modifierFlags)
    • isTransient

      public static boolean isTransient(int modifierFlags)
    • isStatic

      public static boolean isStatic(int modifierFlags)
      Whether the modifierFlags indicates the member is static
    • isFinal

      public static boolean isFinal(int modifierFlags)
      Whether the modifierFlags indicates the member is final
    • isSynthetic

      public static boolean isSynthetic(int modifierFlags)
      Determine is the given member is synthetic based on its modifier flags
      Returns:
      true if the flags indicate synthetic; false otherwise.
    • isBridge

      public static boolean isBridge(int modifierFlags)
      Determine if a method is a bridge based on its modifier flags.
      Returns:
      true if the modifier flags indicate a bridge; false otherwise.
    • isAbstract

      public static boolean isAbstract(int modifierFlags)
    • hasPersistableFieldModifiers

      public static boolean hasPersistableFieldModifiers(int modifierFlags)
      Determine if the modifier flags from a field indicate persist-ability.
      See Also:
      API Note:
      This is NOT the same as determining whether a field is actually a persistent attribute. It is simply checking high-level red-flags (static, transient, etc.) that indicate it cannot be.
    • hasPersistableMethodModifiers

      public static boolean hasPersistableMethodModifiers(int modifierFlags)
      Determine if the modifier flags from a method indicate persist-ability.
      See Also:
      API Note:
      This is NOT the same as determining whether a method is actually a persistent attribute. It is simply checking high-level red-flags (static, transient, etc.) that indicate it cannot be.