Package net.sf.eBus.config
Enum EConfigure.MessageCompilerType
- java.lang.Object
-
- java.lang.Enum<EConfigure.MessageCompilerType>
-
- net.sf.eBus.config.EConfigure.MessageCompilerType
-
- All Implemented Interfaces:
Serializable,Comparable<EConfigure.MessageCompilerType>
- Enclosing class:
- EConfigure
public static enum EConfigure.MessageCompilerType extends Enum<EConfigure.MessageCompilerType>
Defines supported eBus message compilers. An eBus message compiler is used to generate aDataTypeclass at run time. This class is used to serialize and de-serialize eBus message objects.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JAVA_ASSISTGenerates code for a newDataTypesubclass which serializes and de-serializes an eBus message object.JAVA_INVOKECreates aDataTypesubclasses which usesjava.lang.invokepackage to serialize, de-serialize eBus message objects.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EConfigure.MessageCompilerTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EConfigure.MessageCompilerType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JAVA_ASSIST
public static final EConfigure.MessageCompilerType JAVA_ASSIST
Generates code for a newDataTypesubclass which serializes and de-serializes an eBus message object. This is the default compiler type.
-
JAVA_INVOKE
public static final EConfigure.MessageCompilerType JAVA_INVOKE
Creates aDataTypesubclasses which usesjava.lang.invokepackage to serialize, de-serialize eBus message objects. This method should be used only when dynamic Java compilation is not possible.
-
-
Method Detail
-
values
public static EConfigure.MessageCompilerType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EConfigure.MessageCompilerType c : EConfigure.MessageCompilerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EConfigure.MessageCompilerType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-