public InfixExpressionKind createInfixExpressionKindFromString(EDataType eDataType, String initialValue)
        {
            InfixExpressionKind result = InfixExpressionKind.get(initialValue);

            if (result == null)
            {
                throw new ArgumentException(
                          "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.name + "'");
            }
            return(result);
        }
Esempio n. 2
0
 public static InfixExpressionKind getByName(string name)
 {
     for (int i = 0; i < VALUES_ARRAY.Length; ++i)
     {
         InfixExpressionKind result = VALUES_ARRAY[i];
         if (result.getName() == name)
         {
             return(result);
         }
     }
     return(null);
 }
Esempio n. 3
0
 public static InfixExpressionKind get(string literal)
 {
     for (int i = 0; i < VALUES_ARRAY.Length; ++i)
     {
         InfixExpressionKind result = VALUES_ARRAY[i];
         if (result.ToString() == literal)
         {
             return(result);
         }
     }
     return(null);
 }