org.jnetstream.lang
Enum Language

java.lang.Object
  extended by java.lang.Enum<Language>
      extended by org.jnetstream.lang.Language
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Language>

public enum Language
extends java.lang.Enum<Language>

Used to specify the language to use with compilers. The language is used to indicate the source and the target of compilers.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
BPF
          BPF assembly syntax.
JASIM
          Jasmin assembly syntax.
JAVA
          Java syntax will be used.
 
Method Summary
static Language valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Language[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JAVA

public static final Language JAVA
Java syntax will be used.


BPF

public static final Language BPF
BPF assembly syntax. Needs to be assembled to BPF byte code.


JASIM

public static final Language JASIM
Jasmin assembly syntax. Needs to be assembed to Java byte code classfiles.

Method Detail

values

public static final Language[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Language c : Language.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Language valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name