public interface ModifiersProvider
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION |
static int |
BRIDGE |
static int |
ENUM |
static int |
MANDATED |
static int |
SYNTHETIC |
static int |
VARARGS |
Modifier and Type | Method and Description |
---|---|
int |
getModifiers()
Returns the Java Virtual Machine modifiers for this element.
|
default boolean |
isAbstract() |
default boolean |
isConcrete()
Checks that the method is concrete and not abstract.
|
default boolean |
isFinalFlagSet()
The setting of the final modifier bit for types is somewhat confusing, so don't export
isFinal by default.
|
default boolean |
isInterface() |
default boolean |
isNative() |
default boolean |
isPackagePrivate()
|
default boolean |
isPrivate() |
default boolean |
isProtected() |
default boolean |
isPublic() |
default boolean |
isStatic() |
default boolean |
isStrict() |
default boolean |
isSynchronized() |
default boolean |
isTransient() |
default boolean |
isVolatile() |
static int |
jvmClassModifiers() |
static int |
jvmFieldModifiers() |
static int |
jvmMethodModifiers() |
static final int BRIDGE
static final int VARARGS
static final int SYNTHETIC
static final int ANNOTATION
static final int ENUM
static final int MANDATED
int getModifiers()
ResolvedJavaType
) can not be private or protected.default boolean isInterface()
Modifier.isInterface(int)
default boolean isSynchronized()
Modifier.isSynchronized(int)
default boolean isStatic()
Modifier.isStatic(int)
default boolean isFinalFlagSet()
ResolvedJavaField
and ResolvedJavaMethod
can export it as isFinal, but ResolvedJavaType
can provide a more sensible equivalent
like ResolvedJavaType.isLeaf()
.Modifier.isFinal(int)
default boolean isPublic()
Modifier.isPublic(int)
default boolean isPackagePrivate()
default boolean isPrivate()
Modifier.isPrivate(int)
default boolean isProtected()
Modifier.isProtected(int)
default boolean isTransient()
Modifier.isTransient(int)
default boolean isStrict()
Modifier.isStrict(int)
default boolean isVolatile()
Modifier.isVolatile(int)
default boolean isNative()
Modifier.isNative(int)
default boolean isAbstract()
Modifier.isAbstract(int)
default boolean isConcrete()
static int jvmClassModifiers()
static int jvmMethodModifiers()
static int jvmFieldModifiers()