|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.util.IlEnum
public abstract class IlEnum
This is the parent class of all symbolic enumeration classes.
To declare an enumeration C, declare a class C
as follows:
IlEnumInfo class will perform all the
necessary magic to assign distinct values to
c1, ..., cn.
Note: If you define a subclass D of C,
the enum tags defined in D will be listed in
C.metainfo.elements(), although they are not statically
accessible as fields in class C.
The enum tags may have a name. The name
is usually the same as the name of field in the enum class.
If you want to access an element from the enumeration by its name, you
can use the IlEnumInfo.get(String name) method. To get the
IlEnumInfo instance corresponding to your IlEnum, you can
use the method IlEnumInfo.FromClass(Class class).
IlEnumInfo| Field Summary | |
|---|---|
static IlEnumInfo |
metainfo
Contains metainformation about this IlEnum class. |
| Constructor Summary | |
|---|---|
protected |
IlEnum()
Constructor |
| Method Summary | |
|---|---|
String |
getName()
Returns the name of this enumeration tag. |
IlEnum |
intern()
Returns a canonical representation for this object. |
protected void |
setName(String name)
Sets the name of this enumeration tag. |
String |
toString()
Returns the String representation of this IlEnum's values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final IlEnumInfo metainfo
IlEnum class.
| Constructor Detail |
|---|
protected IlEnum()
| Method Detail |
|---|
public String getName()
protected void setName(String name)
public IlEnum intern()
public String toString()
By default, the string representation is the IlEnum name value.
Used in the table to represent the enum value so cannot be changed without
implying a change in the Table look-and-feel.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||