Scanner

edu.tum.cs.scanner
Enum ELanguage

java.lang.Object
  extended by java.lang.Enum<ELanguage>
      extended by edu.tum.cs.scanner.ELanguage
All Implemented Interfaces:
Serializable, Comparable<ELanguage>

public enum ELanguage
extends Enum<ELanguage>

Enumeration class for the languages support by the scanner framework.

Version:
$Revision: 11100 $
Author:
Florian Deissenboeck, Elmar Juergens, Tobias Simon, Jonathan Streit, $Author: juergens $
Rating:
GREEN Rev: 11100

Enum Constant Summary
COBOL
          COBOL
CPP
          C/C++
CS
          C#
JAVA
          Java
PL1
          PL/I
VB
          Visual Basic
 
Method Summary
static ELanguage fromFileExtension(String path)
          Gets the ELanguage value corresonding to a file extension
static ELanguage valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ELanguage[] 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 ELanguage JAVA
Java


CPP

public static final ELanguage CPP
C/C++


VB

public static final ELanguage VB
Visual Basic


PL1

public static final ELanguage PL1
PL/I


COBOL

public static final ELanguage COBOL
COBOL


CS

public static final ELanguage CS
C#

Method Detail

values

public static final ELanguage[] 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(ELanguage c : ELanguage.values())
        System.out.println(c);

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

valueOf

public static ELanguage 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 name

fromFileExtension

public static ELanguage fromFileExtension(String path)
Gets the ELanguage value corresonding to a file extension


Scanner

Scanner - 1.2