public interface ModifierContributor
This allows for a more expressive and type safe alternative of defining a type's or type member's modifiers. However, note that modifier's that apply competing modifiers (such as
private
and protected
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.Modifier and Type | Interface and 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.ForType
A marker interface for modifiers that can be applied to types.
|
Modifier and Type | Field and Description |
---|---|
static int |
EMPTY_MASK
The empty modifier.
|
Modifier and Type | Method and Description |
---|---|
int |
getMask()
Returns the mask of this modifier.
|
static final int EMPTY_MASK
Copyright © 2014–2015. All rights reserved.