Class ModifierReviewable.AbstractBase
java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
- All Implemented Interfaces:
ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable
- Direct Known Subclasses:
FieldDescription.AbstractBase, ModuleDescription.AbstractBase, ModuleDescription.Exports.AbstractBase, ModuleDescription.Opens.AbstractBase, ModuleDescription.Requires.AbstractBase, ParameterDescription.AbstractBase, TypeDescription.Generic.AbstractBase, TypeVariableSource.AbstractBase
- Enclosing interface:
ModifierReviewable
public abstract static class ModifierReviewable.AbstractBase
extends Object
implements ModifierReviewable.ForTypeDefinition, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement
An abstract base implementation of a
ModifierReviewable class.-
Nested Class Summary
Nested classes/interfaces inherited from interface ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable -
Field Summary
Fields inherited from interface ModifierReviewable
EMPTY_MASK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this byte code element's enumeration state.Returns this field's manifestation.Returns this field's persistence.Returns the mandate of this instance.Returns this method's manifestation.Returns this method's strictness in floating-point computation.Returns the openness of this module.Return's this byte code element's ownership.Returns this parameter's manifestation.Returns this parameter's provisioning state.Returns the phase in which this module requirement is relevant.Returns this method's synchronization state.Returns this objects synthetic state.Returns the transitivity of this module requirement.Returns this type's manifestation.Returns this byte code element's visibility.booleanSpecifies if the modifier described by this object isabstract.booleanSpecifies if the modifier described by this object represents the annotation flag.booleanisBridge()Specifies if the modifier described by this object represents the bridge flag.booleanSpecifies if the modifier described by this object represents the deprecated flag.booleanisEnum()Specifies if the modifier described by this object represents the enum flag.booleanisFinal()Specifies if the modifier described by this object isfinal.booleanSpecifies if the modifier described by this object represents the interface flag.booleanSpecifies if the modifier described by this object is mandated.booleanisNative()Specifies if the modifier described by this object isnative.booleanisOpen()Returnstrueif the module is open.booleanSpecifies if the modifier described by this object is package private.booleanSpecifies if the modifier described by this object isprivate.booleanSpecifies if the modifier described by this object isprotected.booleanisPublic()Specifies if the modifier described by this object ispublic.booleanisStatic()Specifies if the modifier described by this object isstatic.booleanReturnstrueif the module requirement is during the static phase only.booleanisStrict()Specifies if the modifier described by this object isstrictfp.booleanSpecifies if the modifier described by this object issynchronized.booleanSpecifies if the modifier described by this object is synthetic.booleanSpecifies if the modifier described by this object represents the transient flag.booleanReturnstrueif the module requirement is transitive.booleanSpecifies if the modifier described by this object represents the var args flag.booleanSpecifies if the modifier described by this object represents the volatile flag.private booleanmatchesMask(int mask) Checks if a mask is matched by this instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModifierReviewable
getModifiers
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
isAbstract
public boolean isAbstract()Specifies if the modifier described by this object isabstract.- Specified by:
isAbstractin interfaceModifierReviewable.OfAbstraction- Returns:
trueif the modifier described by this object isabstract.
-
isFinal
public boolean isFinal()Specifies if the modifier described by this object isfinal.- Specified by:
isFinalin interfaceModifierReviewable- Returns:
trueif the modifier described by this object isfinal.
-
isStatic
public boolean isStatic()Specifies if the modifier described by this object isstatic.- Specified by:
isStaticin interfaceModifierReviewable.OfByteCodeElement- Returns:
trueif the modifier described by this object isstatic.
-
isPublic
public boolean isPublic()Specifies if the modifier described by this object ispublic.- Specified by:
isPublicin interfaceModifierReviewable.OfByteCodeElement- Returns:
trueif the modifier described by this object ispublic.
-
isProtected
public boolean isProtected()Specifies if the modifier described by this object isprotected.- Specified by:
isProtectedin interfaceModifierReviewable.OfByteCodeElement- Returns:
trueif the modifier described by this object isprotected.
-
isPackagePrivate
public boolean isPackagePrivate()Specifies if the modifier described by this object is package private.- Specified by:
isPackagePrivatein interfaceModifierReviewable.OfByteCodeElement- Returns:
trueif the modifier described by this object is package private.
-
isPrivate
public boolean isPrivate()Specifies if the modifier described by this object isprivate.- Specified by:
isPrivatein interfaceModifierReviewable.OfByteCodeElement- Returns:
trueif the modifier described by this object isprivate.
-
isNative
public boolean isNative()Specifies if the modifier described by this object isnative.- Specified by:
isNativein interfaceModifierReviewable.ForMethodDescription- Returns:
trueif the modifier described by this object isnative.
-
isSynchronized
public boolean isSynchronized()Specifies if the modifier described by this object issynchronized.- Specified by:
isSynchronizedin interfaceModifierReviewable.ForMethodDescription- Returns:
trueif the modifier described by this object issynchronized.
-
isStrict
public boolean isStrict()Specifies if the modifier described by this object isstrictfp.- Specified by:
isStrictin interfaceModifierReviewable.ForMethodDescription- Returns:
trueif the modifier described by this object isstrictfp.
-
isMandated
public boolean isMandated()Specifies if the modifier described by this object is mandated.- Specified by:
isMandatedin interfaceModifierReviewable.OfMandatable- Returns:
trueif the modifier described by this object is mandated.
-
isSynthetic
public boolean isSynthetic()Specifies if the modifier described by this object is synthetic.- Specified by:
isSyntheticin interfaceModifierReviewable- Returns:
trueif the modifier described by this object is synthetic.
-
isBridge
public boolean isBridge()Specifies if the modifier described by this object represents the bridge flag.- Specified by:
isBridgein interfaceModifierReviewable.ForMethodDescription- Returns:
trueif the modifier described by this object represents the bridge flag
-
isDeprecated
public boolean isDeprecated()Specifies if the modifier described by this object represents the deprecated flag.- Specified by:
isDeprecatedin interfaceModifierReviewable.OfByteCodeElement- Returns:
trueif the modifier described by this object represents the deprecated flag.
-
isAnnotation
public boolean isAnnotation()Specifies if the modifier described by this object represents the annotation flag.- Specified by:
isAnnotationin interfaceModifierReviewable.ForTypeDefinition- Returns:
trueif the modifier described by this object represents the annotation flag.
-
isEnum
public boolean isEnum()Specifies if the modifier described by this object represents the enum flag.- Specified by:
isEnumin interfaceModifierReviewable.OfEnumeration- Returns:
trueif the modifier described by this object represents the enum flag.
-
isInterface
public boolean isInterface()Specifies if the modifier described by this object represents the interface flag.- Specified by:
isInterfacein interfaceModifierReviewable.ForTypeDefinition- Returns:
trueif the modifier described by this object represents the interface flag.
-
isTransient
public boolean isTransient()Specifies if the modifier described by this object represents the transient flag.- Specified by:
isTransientin interfaceModifierReviewable.ForFieldDescription- Returns:
trueif the modifier described by this object represents the transient flag.
-
isVolatile
public boolean isVolatile()Specifies if the modifier described by this object represents the volatile flag.- Specified by:
isVolatilein interfaceModifierReviewable.ForFieldDescription- Returns:
trueif the modifier described by this object represents the volatile flag.
-
isVarArgs
public boolean isVarArgs()Specifies if the modifier described by this object represents the var args flag.- Specified by:
isVarArgsin interfaceModifierReviewable.ForMethodDescription- Returns:
trueif the modifier described by this object represents the var args flag.
-
isOpen
public boolean isOpen()Returnstrueif the module is open.- Specified by:
isOpenin interfaceModifierReviewable.ForModuleDescription- Returns:
trueif the module is open.
-
isStaticPhase
public boolean isStaticPhase()Returnstrueif the module requirement is during the static phase only.- Specified by:
isStaticPhasein interfaceModifierReviewable.ForModuleRequirement- Returns:
trueif the module requirement is during the static phase only.
-
isTransitive
public boolean isTransitive()Returnstrueif the module requirement is transitive.- Specified by:
isTransitivein interfaceModifierReviewable.ForModuleRequirement- Returns:
trueif the module requirement is transitive.
-
getSyntheticState
Returns this objects synthetic state.- Specified by:
getSyntheticStatein interfaceModifierReviewable- Returns:
- This objects synthetic state.
-
getMandate
Returns the mandate of this instance.- Specified by:
getMandatein interfaceModifierReviewable.OfMandatable- Returns:
- The mandate of this instance.
-
getVisibility
Returns this byte code element's visibility.- Specified by:
getVisibilityin interfaceModifierReviewable.OfByteCodeElement- Returns:
- This byte code element's visibility.
-
getOwnership
Return's this byte code element's ownership.- Specified by:
getOwnershipin interfaceModifierReviewable.OfByteCodeElement- Returns:
- This byte code element's ownership.
-
getEnumerationState
Returns this byte code element's enumeration state.- Specified by:
getEnumerationStatein interfaceModifierReviewable.OfEnumeration- Returns:
- This byte code element's enumeration state.
-
getTypeManifestation
Returns this type's manifestation.- Specified by:
getTypeManifestationin interfaceModifierReviewable.ForTypeDefinition- Returns:
- This type's manifestation.
-
getFieldManifestation
Returns this field's manifestation.- Specified by:
getFieldManifestationin interfaceModifierReviewable.ForFieldDescription- Returns:
- This field's manifestation.
-
getFieldPersistence
Returns this field's persistence.- Specified by:
getFieldPersistencein interfaceModifierReviewable.ForFieldDescription- Returns:
- This field's persistence.
-
getSynchronizationState
Returns this method's synchronization state.- Specified by:
getSynchronizationStatein interfaceModifierReviewable.ForMethodDescription- Returns:
- This method's synchronization state.
-
getMethodManifestation
Returns this method's manifestation.- Specified by:
getMethodManifestationin interfaceModifierReviewable.ForMethodDescription- Returns:
- This method's manifestation.
-
getMethodStrictness
Returns this method's strictness in floating-point computation.- Specified by:
getMethodStrictnessin interfaceModifierReviewable.ForMethodDescription- Returns:
- This method's strictness in floating-point computation.
-
getParameterManifestation
Returns this parameter's manifestation.- Specified by:
getParameterManifestationin interfaceModifierReviewable.ForParameterDescription- Returns:
- This parameter's manifestation.
-
getProvisioningState
Returns this parameter's provisioning state.- Specified by:
getProvisioningStatein interfaceModifierReviewable.ForParameterDescription- Returns:
- This parameter's provisioning state.
-
getOpenness
Returns the openness of this module.- Specified by:
getOpennessin interfaceModifierReviewable.ForModuleDescription- Returns:
- A description of the openness of this module.
-
getTransitivity
Returns the transitivity of this module requirement.- Specified by:
getTransitivityin interfaceModifierReviewable.ForModuleRequirement- Returns:
- The transitivity of this module requirement.
-
getRequiredPhase
Returns the phase in which this module requirement is relevant.- Specified by:
getRequiredPhasein interfaceModifierReviewable.ForModuleRequirement- Returns:
- The phase in which this module requirement is relevant.
-
matchesMask
private boolean matchesMask(int mask) Checks if a mask is matched by this instance.- Parameters:
mask- The mask to check.- Returns:
trueif the mask is matched.
-