Interface ModifierContributor
-
- All Known Subinterfaces:
ModifierContributor.ForField
,ModifierContributor.ForMethod
,ModifierContributor.ForParameter
,ModifierContributor.ForType
- All Known Implementing Classes:
EnumerationState
,FieldManifestation
,FieldPersistence
,Mandate
,MethodArguments
,MethodManifestation
,MethodStrictness
,Ownership
,ParameterManifestation
,ProvisioningState
,SynchronizationState
,SyntheticState
,TypeManifestation
,Visibility
public interface ModifierContributor
An element that describes a type modifier as described in the JVMS.private
andprotected
should not be combined and will result in invalid types. An exception is thrown when built-in modifiers that cannot be combined are used together.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ModifierContributor.ForField
A marker interface for modifiers that can be applied to fields.static interface
ModifierContributor.ForMethod
A marker interface for modifiers that can be applied to methods.static interface
ModifierContributor.ForParameter
A marker interface for modifiers that can be applied to method parameters.static interface
ModifierContributor.ForType
A marker interface for modifiers that can be applied to types.static class
ModifierContributor.Resolver<T extends ModifierContributor>
A resolver for Java modifiers represented byModifierContributor
s.
-
Field Summary
Fields Modifier and Type Field Description static int
EMPTY_MASK
The empty modifier.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getMask()
Returns the mask of this modifier.int
getRange()
Returns the entire range of modifiers that address this contributor's property.boolean
isDefault()
Determines if this is the default modifier.
-
-
-
Field Detail
-
EMPTY_MASK
static final int EMPTY_MASK
The empty modifier.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMask
int getMask()
Returns the mask of this modifier.- Returns:
- The modifier mask that is to be applied to the target type or type member.
-
getRange
int getRange()
Returns the entire range of modifiers that address this contributor's property.- Returns:
- The range of this contributor's property.
-
isDefault
boolean isDefault()
Determines if this is the default modifier.- Returns:
true
if this contributor represents the default modifier.
-
-