public class ClassAccessFlagSet extends Object
| Constructor and Description |
|---|
ClassAccessFlagSet(int value)
Creates a new ClassAccessFlagSet that has the given value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ClassAccessFlag flag) |
boolean |
contains(ClassAccessFlag 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 ClassAccessFlagSet in a Java class file.
|
static void |
main(String[] args)
Tests ClassAccessFlagSet.
|
void |
remove(ClassAccessFlag flag) |
protected void |
setValue(int value)
Sets the value of this set.
|
String |
toString()
Returns the same value as
getName . |
public ClassAccessFlagSet(int value)
value - the set valuepublic boolean contains(ClassAccessFlag flag)
flag - the flag to test forpublic String getName()
public int getValue()
public String toString()
getName .public void add(ClassAccessFlag flag)
public void remove(ClassAccessFlag flag)
protected void setValue(int value)
value - the value of this setpublic static void main(String[] args)
args - the command-line argumentCopyright © 2012. All Rights Reserved.