Modifier (Java SE 26 & JDK 26)
-
Field Summary
Fields
static final intThe
intvalue representing theabstractmodifier.static final intThe
intvalue representing thefinalmodifier.static final intThe
intvalue representing theinterfacemodifier.static final intThe
intvalue representing thenativemodifier.static final intThe
intvalue representing theprivatemodifier.static final intThe
intvalue representing theprotectedmodifier.static final intThe
intvalue representing thepublicmodifier.static final intThe
intvalue representing thestaticmodifier.static final intThe
intvalue representing thestrictfpmodifier.static final intThe
intvalue representing thesynchronizedmodifier.static final intThe
intvalue representing thetransientmodifier.static final intThe
intvalue representing thevolatilemodifier. -
Method Summary
static intReturn an
intvalue OR-ing together the source language modifiers that can be applied to a class.static intReturn an
intvalue OR-ing together the source language modifiers that can be applied to a constructor.static intReturn an
intvalue OR-ing together the source language modifiers that can be applied to a field.static intReturn an
intvalue OR-ing together the source language modifiers that can be applied to an interface.static booleanisAbstract(int mod) Return
trueif the integer argument includes theabstractmodifier,falseotherwise.static booleanisFinal(int mod) Return
trueif the integer argument includes thefinalmodifier,falseotherwise.static booleanisInterface(int mod) Return
trueif the integer argument includes theinterfacemodifier,falseotherwise.static booleanisNative(int mod) Return
trueif the integer argument includes thenativemodifier,falseotherwise.static booleanisPrivate(int mod) Return
trueif the integer argument includes theprivatemodifier,falseotherwise.static booleanisProtected(int mod) Return
trueif the integer argument includes theprotectedmodifier,falseotherwise.static booleanisPublic(int mod) Return
trueif the integer argument includes thepublicmodifier,falseotherwise.static booleanisStatic(int mod) Return
trueif the integer argument includes thestaticmodifier,falseotherwise.static booleanisStrict(int mod) Return
trueif the integer argument includes thestrictfpmodifier,falseotherwise.static booleanisSynchronized(int mod) Return
trueif the integer argument includes thesynchronizedmodifier,falseotherwise.static booleanisTransient(int mod) Return
trueif the integer argument includes thetransientmodifier,falseotherwise.static booleanisVolatile(int mod) Return
trueif the integer argument includes thevolatilemodifier,falseotherwise.static intReturn an
intvalue OR-ing together the source language modifiers that can be applied to a method.static intReturn an
intvalue OR-ing together the source language modifiers that can be applied to a parameter.toString(int mod) Return a string describing the access modifier flags in the specified modifier.
Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitCreates and returns a copy of this object.
booleanIndicates whether some other object is "equal to" this one.
protected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.intReturns a hash code value for this object.
final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
Returns a string representation of the object.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Field Details
-
PUBLIC
-
PRIVATE
-
PROTECTED
-
STATIC
-
FINAL
-
SYNCHRONIZED
-
VOLATILE
-
TRANSIENT
-
NATIVE
-
INTERFACE
-
ABSTRACT
-
STRICT
-
-
Method Details
-
isPublic
-
isPrivate
-
isProtected
-
isStatic
-
isFinal
-
isSynchronized
-
isVolatile
-
isTransient
-
isNative
-
isInterface
-
isAbstract
-
isStrict
-
toString
-
classModifiers
-
interfaceModifiers
-
constructorModifiers
-
methodModifiers
-
fieldModifiers
-
parameterModifiers
-