public class FieldAccessFlagSet extends Object
MutableFieldAccessFlagSet| Constructor and Description |
|---|
FieldAccessFlagSet(int value)
Creates a new FieldAccessFlagSet that has the given value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(FieldAccessFlag flag) |
boolean |
contains(FieldAccessFlag flag)
Returns true if the flag is contained in this set.
|
String |
getName()
Returns the string used to represent the flags in a Java source file.
|
int |
getValue()
Returns the value used to represent the FieldAccessFlagSet in a Java class file.
|
static void |
main(String[] args)
Tests FieldAccessFlagSet.
|
void |
remove(FieldAccessFlag flag) |
protected void |
setValue(int value)
Sets the value of this set.
|
public FieldAccessFlagSet(int value)
value - the set valuepublic boolean contains(FieldAccessFlag flag)
flag - the flag to check forpublic String getName()
public void add(FieldAccessFlag flag)
public void remove(FieldAccessFlag flag)
public int getValue()
protected void setValue(int value)
value - the set valuepublic static void main(String[] args)
args - the command-line argumentCopyright © 2012. All Rights Reserved.