public abstract class CfEntry
extends java.lang.Object
Convenience methods are provided for testing and setting individual bits within the field.
Constructor and Description |
---|
CfEntry()
Create a new entry with no initial value for the access flags.
|
CfEntry(int accessFlags)
Create a new entry with the given access flags.
|
Modifier and Type | Method and Description |
---|---|
int |
getAccessFlags()
Return the access flags, as an int.
|
int |
getAttributeCount()
Count the number of Attributes in getAttributes.
|
Attribute |
getAttributes()
Return the optional linked list of unknown attributes.
|
boolean |
isAbstract()
Return whether the ACC_ABSTRACT access flag is set.
|
boolean |
isDeprecated()
Return whether the member is deprecated.
|
boolean |
isFinal()
Return whether the ACC_FINAL access flag is set.
|
boolean |
isInterface()
Return whether the ACC_INTERFACE access flag is set.
|
boolean |
isNative()
Return whether the ACC_NATIVE access flag is set.
|
boolean |
isPrivate()
Return whether the ACC_PRIVATE flag is set.
|
boolean |
isProtected()
Return whether the ACC_PROTECTED access flag is set.
|
boolean |
isPublic()
Return whether the ACC_PUBLIC flag is set.
|
boolean |
isStatic()
Return whether the ACC_STATIC access flag is set.
|
boolean |
isStrict()
Return whether the ACC_STRICT access flag is set.
|
boolean |
isSynchronized()
Return whether the ACC_SYNCHRONIZED access flag is set.
|
boolean |
isTransient()
Return whether the ACC_TRANSIENT access flag is set.
|
boolean |
isVolatile()
Return whether the ACC_VOLATILE access flag is set.
|
void |
setAbstract(boolean flag)
Set or clear the ACC_ABSTRACT access flag.
|
void |
setAccessFlags(int accessFlags)
Set the access flags, overriding any previously set flags.
|
void |
setAttributes(Attribute attributes)
Set optional linked list of unknown attributes.
|
void |
setDeprecated(boolean deprecated)
Set whether the member is deprecated.
|
void |
setFinal(boolean flag)
Set or clear the ACC_FINAL access flag.
|
void |
setInterface(boolean flag)
Set or clear the ACC_INTERFACE access flag.
|
void |
setNative(boolean flag)
Set or clear the ACC_NATIVE access flag.
|
void |
setPrivate(boolean flag)
Set or clear the ACC_PRIVATE access flag.
|
void |
setProtected(boolean flag)
Set or clear the ACC_PROTECTED access flag.
|
void |
setPublic(boolean flag)
Set or clear the ACC_PUBLIC access flag.
|
void |
setStatic(boolean flag)
Set or clear the ACC_STATIC access flag.
|
void |
setStrict(boolean flag)
Set or clear the ACC_STRICT access flag.
|
void |
setSynchronized(boolean flag)
Set or clear the ACC_SYNCHRONIZED access flag.
|
void |
setTransient(boolean flag)
Set or clear the ACC_TRANSIENT access flag.
|
void |
setVolatile(boolean flag)
Set or clear the ACC_VOLATILE access flag.
|
public CfEntry()
public CfEntry(int accessFlags)
public final int getAccessFlags()
The access flags is a union of JVM.ACC_XXX values.
public final void setAccessFlags(int accessFlags)
Use the constant JVM.ACC_XXX values, for example:
setAccessFlags (JVM.ACC_PUBLIC | JVM.ACC_FINAL);
public final void setPublic(boolean flag)
public final boolean isPublic()
public final void setPrivate(boolean flag)
public final boolean isPrivate()
public final void setProtected(boolean flag)
public final boolean isProtected()
public final void setStatic(boolean flag)
public final boolean isStatic()
public final void setFinal(boolean flag)
public final boolean isFinal()
public final void setSynchronized(boolean flag)
public final boolean isSynchronized()
public final void setVolatile(boolean flag)
public final boolean isVolatile()
public final void setTransient(boolean flag)
public final boolean isTransient()
public final void setNative(boolean flag)
public final boolean isNative()
public final void setInterface(boolean flag)
public final boolean isInterface()
public final void setAbstract(boolean flag)
public final boolean isAbstract()
public final void setStrict(boolean flag)
public final boolean isStrict()
public boolean isDeprecated()
In the classfile this is represented by an attribute.
public void setDeprecated(boolean deprecated)
In the classfile this is represented by an attribute.
deprecated
- whether the member is deprecated.public Attribute getAttributes()
public void setAttributes(Attribute attributes)
attributes
- optional linked list of unknown attributes.public int getAttributeCount()
Copyright ? 2000-2003 Clarity Systems Group, LLC. All Rights Reserved.