Package org.hibernate.models.internal
Class ModifierUtils
java.lang.Object
org.hibernate.models.internal.ModifierUtils
Fills-in non-public aspects of the
Modifier class-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasPersistableFieldModifiers(int modifierFlags) Determine if the modifier flags from a field indicate persist-ability.static booleanhasPersistableMethodModifiers(int modifierFlags) Determine if the modifier flags from a method indicate persist-ability.static booleanisAbstract(int modifierFlags) static booleanisBridge(int modifierFlags) Determine if a method is a bridge based on its modifier flags.static booleanisFinal(int modifierFlags) Whether themodifierFlagsindicates the member is finalstatic booleanisStatic(int modifierFlags) Whether themodifierFlagsindicates the member is staticstatic booleanisSynthetic(int modifierFlags) Determine is the given member is synthetic based on its modifier flagsstatic booleanisTransient(int modifierFlags) static MemberDetails.VisibilityresolveVisibility(int modifierFlags)
-
Field Details
-
BRIDGE
public static final int BRIDGE- See Also:
-
SYNTHETIC
public static final int SYNTHETIC- See Also:
-
DYNAMIC_ATTRIBUTE_MODIFIERS
public static final int DYNAMIC_ATTRIBUTE_MODIFIERS- See Also:
-
-
Method Details
-
resolveVisibility
-
isTransient
public static boolean isTransient(int modifierFlags) -
isStatic
public static boolean isStatic(int modifierFlags) Whether themodifierFlagsindicates the member is static -
isFinal
public static boolean isFinal(int modifierFlags) Whether themodifierFlagsindicates the member is final -
isSynthetic
public static boolean isSynthetic(int modifierFlags) Determine is the given member is synthetic based on its modifier flags- Returns:
trueif the flags indicate synthetic;falseotherwise.
-
isBridge
public static boolean isBridge(int modifierFlags) Determine if a method is a bridge based on its modifier flags.- Returns:
trueif the modifier flags indicate a bridge;falseotherwise.
-
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.
-