com.aptana.ide.lexer
Interface IEnumerationMap

All Known Implementing Classes:
DynamicEnumerationMap, StaticEnumerationMap

public interface IEnumerationMap

Author:
Kevin Lindsey

Method Summary
 int getIntValue(java.lang.String name)
          Returns the index of the given category name.
 java.lang.String getName(int index)
          Returns the enumeration name associated with the given index.
 java.lang.String[] getNames()
          Returns an array of all names in this enumeration map.
 

Method Detail

getName

java.lang.String getName(int index)
Returns the enumeration name associated with the given index. A null value may be returned if the index does not exist in the enumeration

Parameters:
index -
Returns:
String or null

getIntValue

int getIntValue(java.lang.String name)
Returns the index of the given category name. A -1 may be rerturned if the category does not exist in the enumeration

Parameters:
name -
Returns:
int, possibly -1

getNames

java.lang.String[] getNames()
Returns an array of all names in this enumeration map. The order is undefined

Returns:
String[], may be empty