APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.classfile

public abstract Class AccessFlags

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.bcel.internal.classfile.FieldOrMethod, com.sun.org.apache.bcel.internal.classfile.JavaClass, com.sun.org.apache.bcel.internal.generic.ClassGen, com.sun.org.apache.bcel.internal.generic.FieldGenOrMethodGen
Imports
com.sun.org.apache.bcel.internal.Const

Super class for all objects that have modifiers like private, final, ... I.e. classes, fields, and methods.

Field Summary

Modifier and TypeField and Description
protected int
access_flags

Deprecated (since 6.0) will be made private; do not access directly, use getter/setter.
Access flags.

Constructor Summary

AccessConstructor and Description
public
AccessFlags()

Constructs a new instance.

public
AccessFlags(final int
initial access flags.
accessFlags
)

Constructs a new instance.

Method Summary

Modifier and TypeMethod and Description
public final int

Returns:

Access flags of the object aka. "modifiers".
getAccessFlags
()

Gets access flags.

public final int

Returns:

Access flags of the object also known as modifiers.
getModifiers
()

Gets access flags.

public final boolean

Returns:

whether the abstract bit is on.
isAbstract
()

Tests whether the abstract bit is on.

public final void
isAbstract(final boolean
The new value.
flag
)

Sets the abstract bit.

public final boolean

Returns:

whether the annotation bit is on.
isAnnotation
()

Tests whether the annotation bit is on.

public final void
isAnnotation(final boolean
The new value.
flag
)

Sets the annotation bit.

public final boolean

Returns:

whether the enum bit is on.
isEnum
()

Tests whether the enum bit is on.

public final void
isEnum(final boolean
The new value.
flag
)

Sets the enum bit.

public final boolean

Returns:

whether the final bit is on.
isFinal
()

Tests whether the final bit is on.

public final void
isFinal(final boolean
The new value.
flag
)

Sets the final bit.

public final boolean

Returns:

whether the interface bit is on.
isInterface
()

Tests whether the interface bit is on.

public final void
isInterface(final boolean
The new value.
flag
)

Sets the interface bit.

public final boolean

Returns:

whether the native bit is on.
isNative
()

Tests whether the native bit is on.

public final void
isNative(final boolean
The new value.
flag
)

Sets the native bit.

public final boolean

Returns:

whether the private bit is on.
isPrivate
()

Tests whether the private bit is on.

public final void
isPrivate(final boolean
The new value.
flag
)

Sets the private bit.

public final boolean

Returns:

whether the protected bit is on.
isProtected
()

Tests whether the protected bit is on.

public final void
isProtected(final boolean
The new value.
flag
)

Sets the protected bit.

public final boolean

Returns:

whether the public bit is on.
isPublic
()

Tests whether the public bit is on.

public final void
isPublic(final boolean
The new value.
flag
)

Sets the public bit.

public final boolean

Returns:

whether the static bit is on.
isStatic
()

Tests whether the static bit is on.

public final void
isStatic(final boolean
The new value.
flag
)

Sets the static bit.

public final boolean

Returns:

whether the strict bit is on.
isStrictfp
()

Tests whether the strict bit is on.

public final void
isStrictfp(final boolean
The new value.
flag
)

Sets the strict bit.

public final boolean

Returns:

whether the synchronized bit is on.
isSynchronized
()

Tests whether the synchronized bit is on.

public final void
isSynchronized(final boolean
The new value.
flag
)

Sets the synchronized bit.

public final boolean

Returns:

whether the synthetic bit is on.
isSynthetic
()

Tests whether the synthetic bit is on.

public final void
isSynthetic(final boolean
The new value.
flag
)

Sets the synthetic bit.

public final boolean

Returns:

whether the varargs bit is on.
isTransient
()

Tests whether the transient bit is on.

public final void
isTransient(final boolean
The new value.
flag
)

Sets the varargs bit.

public final boolean

Returns:

whether the varargs bit is on.
isVarArgs
()

Tests whether the varargs bit is on.

public final void
isVarArgs(final boolean
The new value.
flag
)

Sets the varargs bit.

public final boolean

Returns:

whether the volatile bit is on.
isVolatile
()

Tests whether the volatile bit is on.

public final void
isVolatile(final boolean
The new value.
flag
)

Sets the volatile bit.

public final void
setAccessFlags(final int
Access flags of the object.
accessFlags
)

Sets access flags also known as modifiers.

private void
setFlag(final int flag, final boolean set)

public final void
setModifiers(final int
Access flags of the object.
accessFlags
)

Sets access flags aka "modifiers".

private boolean

Returns:

whether the bit is on.
test
(final short
the bit to test.
test
)

Tests whether the bit is on.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

access_flagsback to summary
protected int access_flags

Deprecated

(since 6.0) will be made private; do not access directly, use getter/setter.

Access flags.

Annotations
@Deprecated

Constructor Detail

AccessFlagsback to summary
public AccessFlags()

Constructs a new instance.

AccessFlagsback to summary
public AccessFlags(final int accessFlags)

Constructs a new instance.

Parameters
accessFlags:int

initial access flags.

Method Detail

getAccessFlagsback to summary
public final int getAccessFlags()

Gets access flags.

Returns:int

Access flags of the object aka. "modifiers".

getModifiersback to summary
public final int getModifiers()

Gets access flags.

Returns:int

Access flags of the object also known as modifiers.

isAbstractback to summary
public final boolean isAbstract()

Tests whether the abstract bit is on.

Returns:boolean

whether the abstract bit is on.

isAbstractback to summary
public final void isAbstract(final boolean flag)

Sets the abstract bit.

Parameters
flag:boolean

The new value.

isAnnotationback to summary
public final boolean isAnnotation()

Tests whether the annotation bit is on.

Returns:boolean

whether the annotation bit is on.

isAnnotationback to summary
public final void isAnnotation(final boolean flag)

Sets the annotation bit.

Parameters
flag:boolean

The new value.

isEnumback to summary
public final boolean isEnum()

Tests whether the enum bit is on.

Returns:boolean

whether the enum bit is on.

isEnumback to summary
public final void isEnum(final boolean flag)

Sets the enum bit.

Parameters
flag:boolean

The new value.

isFinalback to summary
public final boolean isFinal()

Tests whether the final bit is on.

Returns:boolean

whether the final bit is on.

isFinalback to summary
public final void isFinal(final boolean flag)

Sets the final bit.

Parameters
flag:boolean

The new value.

isInterfaceback to summary
public final boolean isInterface()

Tests whether the interface bit is on.

Returns:boolean

whether the interface bit is on.

isInterfaceback to summary
public final void isInterface(final boolean flag)

Sets the interface bit.

Parameters
flag:boolean

The new value.

isNativeback to summary
public final boolean isNative()

Tests whether the native bit is on.

Returns:boolean

whether the native bit is on.

isNativeback to summary
public final void isNative(final boolean flag)

Sets the native bit.

Parameters
flag:boolean

The new value.

isPrivateback to summary
public final boolean isPrivate()

Tests whether the private bit is on.

Returns:boolean

whether the private bit is on.

isPrivateback to summary
public final void isPrivate(final boolean flag)

Sets the private bit.

Parameters
flag:boolean

The new value.

isProtectedback to summary
public final boolean isProtected()

Tests whether the protected bit is on.

Returns:boolean

whether the protected bit is on.

isProtectedback to summary
public final void isProtected(final boolean flag)

Sets the protected bit.

Parameters
flag:boolean

The new value.

isPublicback to summary
public final boolean isPublic()

Tests whether the public bit is on.

Returns:boolean

whether the public bit is on.

isPublicback to summary
public final void isPublic(final boolean flag)

Sets the public bit.

Parameters
flag:boolean

The new value.

isStaticback to summary
public final boolean isStatic()

Tests whether the static bit is on.

Returns:boolean

whether the static bit is on.

isStaticback to summary
public final void isStatic(final boolean flag)

Sets the static bit.

Parameters
flag:boolean

The new value.

isStrictfpback to summary
public final boolean isStrictfp()

Tests whether the strict bit is on.

Returns:boolean

whether the strict bit is on.

isStrictfpback to summary
public final void isStrictfp(final boolean flag)

Sets the strict bit.

Parameters
flag:boolean

The new value.

isSynchronizedback to summary
public final boolean isSynchronized()

Tests whether the synchronized bit is on.

Returns:boolean

whether the synchronized bit is on.

isSynchronizedback to summary
public final void isSynchronized(final boolean flag)

Sets the synchronized bit.

Parameters
flag:boolean

The new value.

isSyntheticback to summary
public final boolean isSynthetic()

Tests whether the synthetic bit is on.

Returns:boolean

whether the synthetic bit is on.

isSyntheticback to summary
public final void isSynthetic(final boolean flag)

Sets the synthetic bit.

Parameters
flag:boolean

The new value.

isTransientback to summary
public final boolean isTransient()

Tests whether the transient bit is on.

Returns:boolean

whether the varargs bit is on.

isTransientback to summary
public final void isTransient(final boolean flag)

Sets the varargs bit.

Parameters
flag:boolean

The new value.

isVarArgsback to summary
public final boolean isVarArgs()

Tests whether the varargs bit is on.

Returns:boolean

whether the varargs bit is on.

isVarArgsback to summary
public final void isVarArgs(final boolean flag)

Sets the varargs bit.

Parameters
flag:boolean

The new value.

isVolatileback to summary
public final boolean isVolatile()

Tests whether the volatile bit is on.

Returns:boolean

whether the volatile bit is on.

isVolatileback to summary
public final void isVolatile(final boolean flag)

Sets the volatile bit.

Parameters
flag:boolean

The new value.

setAccessFlagsback to summary
public final void setAccessFlags(final int accessFlags)

Sets access flags also known as modifiers.

Parameters
accessFlags:int

Access flags of the object.

setFlagback to summary
private void setFlag(final int flag, final boolean set)
setModifiersback to summary
public final void setModifiers(final int accessFlags)

Sets access flags aka "modifiers".

Parameters
accessFlags:int

Access flags of the object.

testback to summary
private boolean test(final short test)

Tests whether the bit is on.

Parameters
test:short

the bit to test.

Returns:boolean

whether the bit is on.