de.fub.bytecode.classfile
Class AccessFlags

java.lang.Object
  |
  +--de.fub.bytecode.classfile.AccessFlags
Direct Known Subclasses:
ClassGen, FieldGenOrMethodGen, FieldOrMethod, JavaClass

public abstract class AccessFlags
extends java.lang.Object

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

Version:
$Id: AccessFlags.java,v 1.5 2001/05/21 15:10:53 ehaase Exp $
Author:
M. Dahm

Field Summary
protected  int access_flags
           
 
Constructor Summary
AccessFlags()
           
AccessFlags(int a)
           
 
Method Summary
 int getAccessFlags()
           
 boolean isAbstract()
           
 void isAbstract(boolean flag)
           
 boolean isFinal()
           
 void isFinal(boolean flag)
           
 boolean isInterface()
           
 void isInterface(boolean flag)
           
 boolean isNative()
           
 void isNative(boolean flag)
           
 boolean isPrivate()
           
 void isPrivate(boolean flag)
           
 boolean isProtected()
           
 void isProtected(boolean flag)
           
 boolean isPublic()
           
 void isPublic(boolean flag)
           
 boolean isStatic()
           
 void isStatic(boolean flag)
           
 boolean isStrictfp()
           
 void isStrictfp(boolean flag)
           
 boolean isSynchronized()
           
 void isSynchronized(boolean flag)
           
 boolean isTransient()
           
 void isTransient(boolean flag)
           
 boolean isVolatile()
           
 void isVolatile(boolean flag)
           
 void setAccessFlags(int access_flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

access_flags

protected int access_flags
Constructor Detail

AccessFlags

public AccessFlags()

AccessFlags

public AccessFlags(int a)
Parameters:
a - inital access flags
Method Detail

getAccessFlags

public final int getAccessFlags()
Returns:
Access flags of the object.

setAccessFlags

public final void setAccessFlags(int access_flags)
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()