Package org.apache.bcel.classfile
Class AccessFlags
java.lang.Object
org.apache.bcel.classfile.AccessFlags
- Direct Known Subclasses:
- ClassGen,- FieldGenOrMethodGen,- FieldOrMethod,- JavaClass
Super class for all objects that have modifiers like private, final, ... I.e. classes, fields, and methods.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected intDeprecated.(since 6.0) will be made private; do not access directly, use getter/setter.
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance.AccessFlags(int accessFlags) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionfinal intGets access flags.final intGets access flags.final booleanTests whether the abstract bit is on.final voidisAbstract(boolean flag) Sets the abstract bit.final booleanTests whether the annotation bit is on.final voidisAnnotation(boolean flag) Sets the annotation bit.final booleanisEnum()Tests whether the enum bit is on.final voidisEnum(boolean flag) Sets the enum bit.final booleanisFinal()Tests whether the final bit is on.final voidisFinal(boolean flag) Sets the final bit.final booleanTests whether the interface bit is on.final voidisInterface(boolean flag) Sets the interface bit.final booleanisNative()Tests whether the native bit is on.final voidisNative(boolean flag) Sets the native bit.final booleanTests whether the private bit is on.final voidisPrivate(boolean flag) Sets the private bit.final booleanTests whether the protected bit is on.final voidisProtected(boolean flag) Sets the protected bit.final booleanisPublic()Tests whether the public bit is on.final voidisPublic(boolean flag) Sets the public bit.final booleanisStatic()Tests whether the static bit is on.final voidisStatic(boolean flag) Sets the static bit.final booleanTests whether the strict bit is on.final voidisStrictfp(boolean flag) Sets the strict bit.final booleanTests whether the synchronized bit is on.final voidisSynchronized(boolean flag) Sets the synchronized bit.final booleanTests whether the synthetic bit is on.final voidisSynthetic(boolean flag) Sets the synthetic bit.final booleanTests whether the transient bit is on.final voidisTransient(boolean flag) Sets the varargs bit.final booleanTests whether the varargs bit is on.final voidisVarArgs(boolean flag) Sets the varargs bit.final booleanTests whether the volatile bit is on.final voidisVolatile(boolean flag) Sets the volatile bit.final voidsetAccessFlags(int accessFlags) Sets access flags also known as modifiers.final voidsetModifiers(int accessFlags) Sets access flags aka "modifiers".
- 
Field Details- 
access_flagsDeprecated.(since 6.0) will be made private; do not access directly, use getter/setter.Access flags.
 
- 
- 
Constructor Details- 
AccessFlagspublic AccessFlags()Constructs a new instance.
- 
AccessFlagsConstructs a new instance.- Parameters:
- accessFlags- initial access flags.
 
 
- 
- 
Method Details- 
getAccessFlagsGets access flags.- Returns:
- Access flags of the object aka. "modifiers".
 
- 
getModifiersGets access flags.- Returns:
- Access flags of the object also known as modifiers.
 
- 
isAbstractTests whether the abstract bit is on.- Returns:
- whether the abstract bit is on.
 
- 
isAbstractSets the abstract bit.- Parameters:
- flag- The new value.
 
- 
isAnnotationTests whether the annotation bit is on.- Returns:
- whether the annotation bit is on.
 
- 
isAnnotationSets the annotation bit.- Parameters:
- flag- The new value.
 
- 
isEnumTests whether the enum bit is on.- Returns:
- whether the enum bit is on.
 
- 
isEnumSets the enum bit.- Parameters:
- flag- The new value.
 
- 
isFinalTests whether the final bit is on.- Returns:
- whether the final bit is on.
 
- 
isFinalSets the final bit.- Parameters:
- flag- The new value.
 
- 
isInterfaceTests whether the interface bit is on.- Returns:
- whether the interface bit is on.
 
- 
isInterfaceSets the interface bit.- Parameters:
- flag- The new value.
 
- 
isNativeTests whether the native bit is on.- Returns:
- whether the native bit is on.
 
- 
isNativeSets the native bit.- Parameters:
- flag- The new value.
 
- 
isPrivateTests whether the private bit is on.- Returns:
- whether the private bit is on.
 
- 
isPrivateSets the private bit.- Parameters:
- flag- The new value.
 
- 
isProtectedTests whether the protected bit is on.- Returns:
- whether the protected bit is on.
 
- 
isProtectedSets the protected bit.- Parameters:
- flag- The new value.
 
- 
isPublicTests whether the public bit is on.- Returns:
- whether the public bit is on.
 
- 
isPublicSets the public bit.- Parameters:
- flag- The new value.
 
- 
isStaticTests whether the static bit is on.- Returns:
- whether the static bit is on.
 
- 
isStaticSets the static bit.- Parameters:
- flag- The new value.
 
- 
isStrictfpTests whether the strict bit is on.- Returns:
- whether the strict bit is on.
 
- 
isStrictfpSets the strict bit.- Parameters:
- flag- The new value.
 
- 
isSynchronizedTests whether the synchronized bit is on.- Returns:
- whether the synchronized bit is on.
 
- 
isSynchronizedSets the synchronized bit.- Parameters:
- flag- The new value.
 
- 
isSyntheticTests whether the synthetic bit is on.- Returns:
- whether the synthetic bit is on.
 
- 
isSyntheticSets the synthetic bit.- Parameters:
- flag- The new value.
 
- 
isTransientTests whether the transient bit is on.- Returns:
- whether the varargs bit is on.
 
- 
isTransientSets the varargs bit.- Parameters:
- flag- The new value.
 
- 
isVarArgsTests whether the varargs bit is on.- Returns:
- whether the varargs bit is on.
 
- 
isVarArgsSets the varargs bit.- Parameters:
- flag- The new value.
 
- 
isVolatileTests whether the volatile bit is on.- Returns:
- whether the volatile bit is on.
 
- 
isVolatileSets the volatile bit.- Parameters:
- flag- The new value.
 
- 
setAccessFlagsSets access flags also known as modifiers.- Parameters:
- accessFlags- Access flags of the object.
 
- 
setModifiersSets access flags aka "modifiers".- Parameters:
- accessFlags- Access flags of the object.
 
 
-