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 java.lang.Object implements ModifierReviewable.ForTypeDefinition, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription
An abstract base implementation of aModifierReviewable
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 Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumerationState
getEnumerationState()
Returns this byte code element's enumeration state.FieldManifestation
getFieldManifestation()
Returns this field's manifestation.FieldPersistence
getFieldPersistence()
Returns this field's persistence.MethodManifestation
getMethodManifestation()
Returns this method's manifestation.MethodStrictness
getMethodStrictness()
Returns this method's strictness in floating-point computation.Ownership
getOwnership()
Return's this byte code element's ownership.ParameterManifestation
getParameterManifestation()
Returns this parameter's manifestation.ProvisioningState
getProvisioningState()
Returns this parameter's provisioning state.SynchronizationState
getSynchronizationState()
Returns this method's synchronization state.SyntheticState
getSyntheticState()
Returns this objects synthetic state.TypeManifestation
getTypeManifestation()
Returns this type's manifestation.Visibility
getVisibility()
Returns this byte code element's visibility.boolean
isAbstract()
Specifies if the modifier described by this object isabstract
.boolean
isAnnotation()
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
isDeprecated()
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
isInterface()
Specifies if the modifier described by this object represents the interface flag.boolean
isMandated()
CSpecifies if the modifier described by this object is mandated.boolean
isNative()
Specifies if the modifier described by this object isnative
.boolean
isPackagePrivate()
Specifies if the modifier described by this object is package private.boolean
isPrivate()
Specifies if the modifier described by this object isprivate
.boolean
isProtected()
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
isSynchronized()
Specifies if the modifier described by this object issynchronized
.boolean
isSynthetic()
Specifies if the modifier described by this object is synthetic.boolean
isTransient()
Specifies if the modifier described by this object represents the transient flag.boolean
isVarArgs()
Specifies if the modifier described by this object represents the var args flag.boolean
isVolatile()
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
-
-
-
-
Method Detail
-
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
public SyntheticState getSyntheticState()
Returns this objects synthetic state.- Specified by:
getSyntheticState
in interfaceModifierReviewable
- Returns:
- This objects synthetic state.
-
getVisibility
public Visibility getVisibility()
Returns this byte code element's visibility.- Specified by:
getVisibility
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
- This byte code element's visibility.
-
getOwnership
public Ownership getOwnership()
Return's this byte code element's ownership.- Specified by:
getOwnership
in interfaceModifierReviewable.OfByteCodeElement
- Returns:
- This byte code element's ownership.
-
getEnumerationState
public EnumerationState getEnumerationState()
Returns this byte code element's enumeration state.- Specified by:
getEnumerationState
in interfaceModifierReviewable.OfEnumeration
- Returns:
- This byte code element's enumeration state.
-
getTypeManifestation
public TypeManifestation getTypeManifestation()
Returns this type's manifestation.- Specified by:
getTypeManifestation
in interfaceModifierReviewable.ForTypeDefinition
- Returns:
- This type's manifestation.
-
getFieldManifestation
public FieldManifestation getFieldManifestation()
Returns this field's manifestation.- Specified by:
getFieldManifestation
in interfaceModifierReviewable.ForFieldDescription
- Returns:
- This field's manifestation.
-
getFieldPersistence
public FieldPersistence getFieldPersistence()
Returns this field's persistence.- Specified by:
getFieldPersistence
in interfaceModifierReviewable.ForFieldDescription
- Returns:
- This field's persistence.
-
getSynchronizationState
public SynchronizationState getSynchronizationState()
Returns this method's synchronization state.- Specified by:
getSynchronizationState
in interfaceModifierReviewable.ForMethodDescription
- Returns:
- This method's synchronization state.
-
getMethodManifestation
public MethodManifestation getMethodManifestation()
Returns this method's manifestation.- Specified by:
getMethodManifestation
in interfaceModifierReviewable.ForMethodDescription
- Returns:
- This method's manifestation.
-
getMethodStrictness
public MethodStrictness 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
public ParameterManifestation getParameterManifestation()
Returns this parameter's manifestation.- Specified by:
getParameterManifestation
in interfaceModifierReviewable.ForParameterDescription
- Returns:
- This parameter's manifestation.
-
getProvisioningState
public ProvisioningState 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.
-
-