public abstract class AccessFlags extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
access_flags
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter.
|
| Constructor and Description |
|---|
AccessFlags()
Constructs a new instance.
|
AccessFlags(int accessFlags)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Gets access flags.
|
int |
getModifiers()
Gets access flags.
|
boolean |
isAbstract()
Tests whether the abstract bit is on.
|
void |
isAbstract(boolean flag)
Sets the abstract bit.
|
boolean |
isAnnotation()
Tests whether the annotation bit is on.
|
void |
isAnnotation(boolean flag)
Sets the annotation bit.
|
boolean |
isEnum()
Tests whether the enum bit is on.
|
void |
isEnum(boolean flag)
Sets the enum bit.
|
boolean |
isFinal()
Tests whether the final bit is on.
|
void |
isFinal(boolean flag)
Sets the final bit.
|
boolean |
isInterface()
Tests whether the interface bit is on.
|
void |
isInterface(boolean flag)
Sets the interface bit.
|
boolean |
isNative()
Tests whether the native bit is on.
|
void |
isNative(boolean flag)
Sets the native bit.
|
boolean |
isPrivate()
Tests whether the private bit is on.
|
void |
isPrivate(boolean flag)
Sets the private bit.
|
boolean |
isProtected()
Tests whether the protected bit is on.
|
void |
isProtected(boolean flag)
Sets the protected bit.
|
boolean |
isPublic()
Tests whether the public bit is on.
|
void |
isPublic(boolean flag)
Sets the public bit.
|
boolean |
isStatic()
Tests whether the static bit is on.
|
void |
isStatic(boolean flag)
Sets the static bit.
|
boolean |
isStrictfp()
Tests whether the strict bit is on.
|
void |
isStrictfp(boolean flag)
Sets the strict bit.
|
boolean |
isSynchronized()
Tests whether the synchronized bit is on.
|
void |
isSynchronized(boolean flag)
Sets the synchronized bit.
|
boolean |
isSynthetic()
Tests whether the synthetic bit is on.
|
void |
isSynthetic(boolean flag)
Sets the synthetic bit.
|
boolean |
isTransient()
Tests whether the transient bit is on.
|
void |
isTransient(boolean flag)
Sets the varargs bit.
|
boolean |
isVarArgs()
Tests whether the varargs bit is on.
|
void |
isVarArgs(boolean flag)
Sets the varargs bit.
|
boolean |
isVolatile()
Tests whether the volatile bit is on.
|
void |
isVolatile(boolean flag)
Sets the volatile bit.
|
void |
setAccessFlags(int accessFlags)
Sets access flags also known as modifiers.
|
void |
setModifiers(int accessFlags)
Sets access flags aka "modifiers".
|
@Deprecated protected int access_flags
public AccessFlags()
public AccessFlags(int accessFlags)
accessFlags - initial access flags.public final int getAccessFlags()
public final int getModifiers()
public final boolean isAbstract()
public final void isAbstract(boolean flag)
flag - The new value.public final boolean isAnnotation()
public final void isAnnotation(boolean flag)
flag - The new value.public final boolean isEnum()
public final void isEnum(boolean flag)
flag - The new value.public final boolean isFinal()
public final void isFinal(boolean flag)
flag - The new value.public final boolean isInterface()
public final void isInterface(boolean flag)
flag - The new value.public final boolean isNative()
public final void isNative(boolean flag)
flag - The new value.public final boolean isPrivate()
public final void isPrivate(boolean flag)
flag - The new value.public final boolean isProtected()
public final void isProtected(boolean flag)
flag - The new value.public final boolean isPublic()
public final void isPublic(boolean flag)
flag - The new value.public final boolean isStatic()
public final void isStatic(boolean flag)
flag - The new value.public final boolean isStrictfp()
public final void isStrictfp(boolean flag)
flag - The new value.public final boolean isSynchronized()
public final void isSynchronized(boolean flag)
flag - The new value.public final boolean isSynthetic()
public final void isSynthetic(boolean flag)
flag - The new value.public final boolean isTransient()
public final void isTransient(boolean flag)
flag - The new value.public final boolean isVarArgs()
public final void isVarArgs(boolean flag)
flag - The new value.public final boolean isVolatile()
public final void isVolatile(boolean flag)
flag - The new value.public final void setAccessFlags(int accessFlags)
accessFlags - Access flags of the object.public final void setModifiers(int accessFlags)
accessFlags - Access flags of the object.Copyright © 2004–2025 The Apache Software Foundation. All rights reserved.