Package net.bytebuddy.description
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 java.lang.Object implements ModifierReviewable.ForTypeDefinition, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement
An abstract base implementation of aModifierReviewableclass.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.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 net.bytebuddy.description.ModifierReviewable
EMPTY_MASK
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumerationStategetEnumerationState()Returns this byte code element's enumeration state.FieldManifestationgetFieldManifestation()Returns this field's manifestation.FieldPersistencegetFieldPersistence()Returns this field's persistence.MandategetMandate()Returns the mandate of this instance.MethodManifestationgetMethodManifestation()Returns this method's manifestation.MethodStrictnessgetMethodStrictness()Returns this method's strictness in floating-point computation.OpennessgetOpenness()Returns the openness of this module.OwnershipgetOwnership()Return's this byte code element's ownership.ParameterManifestationgetParameterManifestation()Returns this parameter's manifestation.ProvisioningStategetProvisioningState()Returns this parameter's provisioning state.RequiredPhasegetRequiredPhase()Returns the phase in which this module requirement is relevant.SynchronizationStategetSynchronizationState()Returns this method's synchronization state.SyntheticStategetSyntheticState()Returns this objects synthetic state.TransitivitygetTransitivity()Returns the transitivity of this module requirement.TypeManifestationgetTypeManifestation()Returns this type's manifestation.VisibilitygetVisibility()Returns this byte code element's visibility.booleanisAbstract()Specifies if the modifier described by this object isabstract.booleanisAnnotation()Specifies if the modifier described by this object represents the annotation flag.booleanisBridge()Specifies if the modifier described by this object represents the bridge flag.booleanisDeprecated()Specifies 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.booleanisInterface()Specifies if the modifier described by this object represents the interface flag.booleanisMandated()Specifies 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.booleanisPackagePrivate()Specifies if the modifier described by this object is package private.booleanisPrivate()Specifies if the modifier described by this object isprivate.booleanisProtected()Specifies 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.booleanisStaticPhase()Returnstrueif the module requirement is during the static phase only.booleanisStrict()Specifies if the modifier described by this object isstrictfp.booleanisSynchronized()Specifies if the modifier described by this object issynchronized.booleanisSynthetic()Specifies if the modifier described by this object is synthetic.booleanisTransient()Specifies if the modifier described by this object represents the transient flag.booleanisTransitive()Returnstrueif the module requirement is transitive.booleanisVarArgs()Specifies if the modifier described by this object represents the var args flag.booleanisVolatile()Specifies 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getModifiers
-
-
-
-
Method Detail
-
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
public SyntheticState getSyntheticState()
Returns this objects synthetic state.- Specified by:
getSyntheticStatein interfaceModifierReviewable- Returns:
- This objects synthetic state.
-
getMandate
public Mandate getMandate()
Returns the mandate of this instance.- Specified by:
getMandatein interfaceModifierReviewable.OfMandatable- Returns:
- The mandate of this instance.
-
getVisibility
public Visibility getVisibility()
Returns this byte code element's visibility.- Specified by:
getVisibilityin interfaceModifierReviewable.OfByteCodeElement- Returns:
- This byte code element's visibility.
-
getOwnership
public Ownership getOwnership()
Return's this byte code element's ownership.- Specified by:
getOwnershipin interfaceModifierReviewable.OfByteCodeElement- Returns:
- This byte code element's ownership.
-
getEnumerationState
public EnumerationState getEnumerationState()
Returns this byte code element's enumeration state.- Specified by:
getEnumerationStatein interfaceModifierReviewable.OfEnumeration- Returns:
- This byte code element's enumeration state.
-
getTypeManifestation
public TypeManifestation getTypeManifestation()
Returns this type's manifestation.- Specified by:
getTypeManifestationin interfaceModifierReviewable.ForTypeDefinition- Returns:
- This type's manifestation.
-
getFieldManifestation
public FieldManifestation getFieldManifestation()
Returns this field's manifestation.- Specified by:
getFieldManifestationin interfaceModifierReviewable.ForFieldDescription- Returns:
- This field's manifestation.
-
getFieldPersistence
public FieldPersistence getFieldPersistence()
Returns this field's persistence.- Specified by:
getFieldPersistencein interfaceModifierReviewable.ForFieldDescription- Returns:
- This field's persistence.
-
getSynchronizationState
public SynchronizationState getSynchronizationState()
Returns this method's synchronization state.- Specified by:
getSynchronizationStatein interfaceModifierReviewable.ForMethodDescription- Returns:
- This method's synchronization state.
-
getMethodManifestation
public MethodManifestation getMethodManifestation()
Returns this method's manifestation.- Specified by:
getMethodManifestationin interfaceModifierReviewable.ForMethodDescription- Returns:
- This method's manifestation.
-
getMethodStrictness
public MethodStrictness 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
public ParameterManifestation getParameterManifestation()
Returns this parameter's manifestation.- Specified by:
getParameterManifestationin interfaceModifierReviewable.ForParameterDescription- Returns:
- This parameter's manifestation.
-
getProvisioningState
public ProvisioningState getProvisioningState()
Returns this parameter's provisioning state.- Specified by:
getProvisioningStatein interfaceModifierReviewable.ForParameterDescription- Returns:
- This parameter's provisioning state.
-
getOpenness
public Openness getOpenness()
Returns the openness of this module.- Specified by:
getOpennessin interfaceModifierReviewable.ForModuleDescription- Returns:
- A description of the openness of this module.
-
getTransitivity
public Transitivity getTransitivity()
Returns the transitivity of this module requirement.- Specified by:
getTransitivityin interfaceModifierReviewable.ForModuleRequirement- Returns:
- The transitivity of this module requirement.
-
getRequiredPhase
public RequiredPhase 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.
-
-