Package net.bytebuddy.description
Class ModifierReviewable.AbstractBase
java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
- All Implemented Interfaces:
ModifierReviewable
,ModifierReviewable.ForFieldDescription
,ModifierReviewable.ForMethodDescription
,ModifierReviewable.ForParameterDescription
,ModifierReviewable.ForTypeDefinition
,ModifierReviewable.OfAbstraction
,ModifierReviewable.OfByteCodeElement
,ModifierReviewable.OfEnumeration
- Direct Known Subclasses:
FieldDescription.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
An abstract base implementation of a
ModifierReviewable
class.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
-
Field Summary
Fields inherited from interface net.bytebuddy.description.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 this method's manifestation.Returns this method's strictness in floating-point computation.Return's this byte code element's ownership.Returns this parameter's manifestation.Returns this parameter's provisioning state.Returns this method's synchronization state.Returns this objects synthetic state.Returns this type's manifestation.Returns this byte code element's visibility.boolean
Specifies if the modifier described by this object isabstract
.boolean
Specifies if the modifier described by this object represents the annotation flag.boolean
isBridge()
Specifies if the modifier described by this object represents the bridge flag.boolean
Specifies if the modifier described by this object represents the deprecated flag.boolean
isEnum()
Specifies if the modifier described by this object represents the enum flag.boolean
isFinal()
Specifies if the modifier described by this object isfinal
.boolean
Specifies if the modifier described by this object represents the interface flag.boolean
CSpecifies if the modifier described by this object is mandated.boolean
isNative()
Specifies if the modifier described by this object isnative
.boolean
Specifies if the modifier described by this object is package private.boolean
Specifies if the modifier described by this object isprivate
.boolean
Specifies if the modifier described by this object isprotected
.boolean
isPublic()
Specifies if the modifier described by this object ispublic
.boolean
isStatic()
Specifies if the modifier described by this object isstatic
.boolean
isStrict()
Specifies if the modifier described by this object isstrictfp
.boolean
Specifies if the modifier described by this object issynchronized
.boolean
Specifies if the modifier described by this object is synthetic.boolean
Specifies if the modifier described by this object represents the transient flag.boolean
Specifies if the modifier described by this object represents the var args flag.boolean
Specifies if the modifier described by this object represents the volatile flag.private boolean
matchesMask
(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
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
isAbstract
public boolean isAbstract()Specifies if the modifier described by this object isabstract
.- Specified by:
isAbstract
in interfaceModifierReviewable.OfAbstraction
- Returns:
true
if the modifier described by this object isabstract
.
-
isFinal
public boolean isFinal()Specifies if the modifier described by this object isfinal
.- Specified by:
isFinal
in interfaceModifierReviewable
- Returns:
true
if the modifier described by this object isfinal
.
-
isStatic
public boolean isStatic()Specifies if the modifier described by this object isstatic
.- Specified by:
isStatic
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
true
if the modifier described by this object isstatic
.
-
isPublic
public boolean isPublic()Specifies if the modifier described by this object ispublic
.- Specified by:
isPublic
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
true
if the modifier described by this object ispublic
.
-
isProtected
public boolean isProtected()Specifies if the modifier described by this object isprotected
.- Specified by:
isProtected
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
true
if the modifier described by this object isprotected
.
-
isPackagePrivate
public boolean isPackagePrivate()Specifies if the modifier described by this object is package private.- Specified by:
isPackagePrivate
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
true
if the modifier described by this object is package private.
-
isPrivate
public boolean isPrivate()Specifies if the modifier described by this object isprivate
.- Specified by:
isPrivate
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
true
if the modifier described by this object isprivate
.
-
isNative
public boolean isNative()Specifies if the modifier described by this object isnative
.- Specified by:
isNative
in interfaceModifierReviewable.ForMethodDescription
- Returns:
true
if the modifier described by this object isnative
.
-
isSynchronized
public boolean isSynchronized()Specifies if the modifier described by this object issynchronized
.- Specified by:
isSynchronized
in interfaceModifierReviewable.ForMethodDescription
- Returns:
true
if the modifier described by this object issynchronized
.
-
isStrict
public boolean isStrict()Specifies if the modifier described by this object isstrictfp
.- Specified by:
isStrict
in interfaceModifierReviewable.ForMethodDescription
- Returns:
true
if the modifier described by this object isstrictfp
.
-
isMandated
public boolean isMandated()CSpecifies if the modifier described by this object is mandated.- Specified by:
isMandated
in interfaceModifierReviewable.ForParameterDescription
- Returns:
true
if the modifier described by this object is mandated.
-
isSynthetic
public boolean isSynthetic()Specifies if the modifier described by this object is synthetic.- Specified by:
isSynthetic
in interfaceModifierReviewable
- Returns:
true
if 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:
isBridge
in interfaceModifierReviewable.ForMethodDescription
- Returns:
true
if 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:
isDeprecated
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
true
if 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:
isAnnotation
in interfaceModifierReviewable.ForTypeDefinition
- Returns:
true
if 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:
isEnum
in interfaceModifierReviewable.OfEnumeration
- Returns:
true
if 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:
isInterface
in interfaceModifierReviewable.ForTypeDefinition
- Returns:
true
if 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:
isTransient
in interfaceModifierReviewable.ForFieldDescription
- Returns:
true
if 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:
isVolatile
in interfaceModifierReviewable.ForFieldDescription
- Returns:
true
if 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:
isVarArgs
in interfaceModifierReviewable.ForMethodDescription
- Returns:
true
if the modifier described by this object represents the var args flag.
-
getSyntheticState
Returns this objects synthetic state.- Specified by:
getSyntheticState
in interfaceModifierReviewable
- Returns:
- This objects synthetic state.
-
getVisibility
Returns this byte code element's visibility.- Specified by:
getVisibility
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
- This byte code element's visibility.
-
getOwnership
Return's this byte code element's ownership.- Specified by:
getOwnership
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
- This byte code element's ownership.
-
getEnumerationState
Returns this byte code element's enumeration state.- Specified by:
getEnumerationState
in interfaceModifierReviewable.OfEnumeration
- Returns:
- This byte code element's enumeration state.
-
getTypeManifestation
Returns this type's manifestation.- Specified by:
getTypeManifestation
in interfaceModifierReviewable.ForTypeDefinition
- Returns:
- This type's manifestation.
-
getFieldManifestation
Returns this field's manifestation.- Specified by:
getFieldManifestation
in interfaceModifierReviewable.ForFieldDescription
- Returns:
- This field's manifestation.
-
getFieldPersistence
Returns this field's persistence.- Specified by:
getFieldPersistence
in interfaceModifierReviewable.ForFieldDescription
- Returns:
- This field's persistence.
-
getSynchronizationState
Returns this method's synchronization state.- Specified by:
getSynchronizationState
in interfaceModifierReviewable.ForMethodDescription
- Returns:
- This method's synchronization state.
-
getMethodManifestation
Returns this method's manifestation.- Specified by:
getMethodManifestation
in interfaceModifierReviewable.ForMethodDescription
- Returns:
- This method's manifestation.
-
getMethodStrictness
Returns this method's strictness in floating-point computation.- Specified by:
getMethodStrictness
in interfaceModifierReviewable.ForMethodDescription
- Returns:
- This method's strictness in floating-point computation.
-
getParameterManifestation
Returns this parameter's manifestation.- Specified by:
getParameterManifestation
in interfaceModifierReviewable.ForParameterDescription
- Returns:
- This parameter's manifestation.
-
getProvisioningState
Returns this parameter's provisioning state.- Specified by:
getProvisioningState
in interfaceModifierReviewable.ForParameterDescription
- Returns:
- This parameter's provisioning state.
-
matchesMask
private boolean matchesMask(int mask) Checks if a mask is matched by this instance.- Parameters:
mask
- The mask to check.- Returns:
true
if the mask is matched.
-