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 Summary
Modifier and TypeFieldDescriptionprotected int
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setter -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
final int
final boolean
final void
isAbstract
(boolean flag) final boolean
final void
isAnnotation
(boolean flag) final boolean
isEnum()
final void
isEnum
(boolean flag) final boolean
isFinal()
final void
isFinal
(boolean flag) final boolean
final void
isInterface
(boolean flag) final boolean
isNative()
final void
isNative
(boolean flag) final boolean
final void
isPrivate
(boolean flag) final boolean
final void
isProtected
(boolean flag) final boolean
isPublic()
final void
isPublic
(boolean flag) final boolean
isStatic()
final void
isStatic
(boolean flag) final boolean
final void
isStrictfp
(boolean flag) final boolean
final void
isSynchronized
(boolean flag) final boolean
final void
isSynthetic
(boolean flag) final boolean
final void
isTransient
(boolean flag) final boolean
final void
isVarArgs
(boolean flag) final boolean
final void
isVolatile
(boolean flag) final void
setAccessFlags
(int access_flags) Set access flags aka "modifiers".final void
setModifiers
(int access_flags) Set access flags aka "modifiers".
-
Field Details
-
access_flags
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setter
-
-
Constructor Details
-
AccessFlags
public AccessFlags() -
AccessFlags
public AccessFlags(int a) - Parameters:
a
- inital access flags
-
-
Method Details
-
getAccessFlags
public final int getAccessFlags()- Returns:
- Access flags of the object aka. "modifiers".
-
getModifiers
public final int getModifiers()- Returns:
- Access flags of the object aka. "modifiers".
-
setAccessFlags
public final void setAccessFlags(int access_flags) Set access flags aka "modifiers".- Parameters:
access_flags
- Access flags of the object.
-
setModifiers
public final void setModifiers(int access_flags) Set access flags aka "modifiers".- Parameters:
access_flags
- Access flags of the object.
-
isPublic
public final void isPublic(boolean flag) -
isPublic
public final boolean isPublic() -
isPrivate
public final void isPrivate(boolean flag) -
isPrivate
public final boolean isPrivate() -
isProtected
public final void isProtected(boolean flag) -
isProtected
public final boolean isProtected() -
isStatic
public final void isStatic(boolean flag) -
isStatic
public final boolean isStatic() -
isFinal
public final void isFinal(boolean flag) -
isFinal
public final boolean isFinal() -
isSynchronized
public final void isSynchronized(boolean flag) -
isSynchronized
public final boolean isSynchronized() -
isVolatile
public final void isVolatile(boolean flag) -
isVolatile
public final boolean isVolatile() -
isTransient
public final void isTransient(boolean flag) -
isTransient
public final boolean isTransient() -
isNative
public final void isNative(boolean flag) -
isNative
public final boolean isNative() -
isInterface
public final void isInterface(boolean flag) -
isInterface
public final boolean isInterface() -
isAbstract
public final void isAbstract(boolean flag) -
isAbstract
public final boolean isAbstract() -
isStrictfp
public final void isStrictfp(boolean flag) -
isStrictfp
public final boolean isStrictfp() -
isSynthetic
public final void isSynthetic(boolean flag) -
isSynthetic
public final boolean isSynthetic() -
isAnnotation
public final void isAnnotation(boolean flag) -
isAnnotation
public final boolean isAnnotation() -
isEnum
public final void isEnum(boolean flag) -
isEnum
public final boolean isEnum() -
isVarArgs
public final void isVarArgs(boolean flag) -
isVarArgs
public final boolean isVarArgs()
-