Пример #1
0
        static LiteralBool()
        {
            idMap_ = new System.Collections.Hashtable();
            {
                LiteralBool literal = new LiteralBool("true");
                object      tempObject;
                tempObject     = literal;
                idMap_["true"] = tempObject;
                System.Object generatedAux = tempObject;
                object        tempObject2;
                tempObject2    = literal;
                idMap_["TRUE"] = tempObject2;
                System.Object generatedAux2 = tempObject2;
                object        tempObject3;
                tempObject3    = literal;
                idMap_["True"] = tempObject3;
                System.Object generatedAux3 = tempObject3;

                literal = new LiteralBool("false");
                object tempObject4;
                tempObject4     = literal;
                idMap_["false"] = tempObject4;
                System.Object generatedAux4 = tempObject4;
                object        tempObject5;
                tempObject5     = literal;
                idMap_["FALSE"] = tempObject5;
                System.Object generatedAux5 = tempObject5;
                object        tempObject6;
                tempObject6     = literal;
                idMap_["False"] = tempObject6;
                System.Object generatedAux6 = tempObject6;
            }
        }
Пример #2
0
        static LiteralBool()
        {
            idMap_ = new System.Collections.Hashtable();
            {
                LiteralBool literal = new LiteralBool("true");
                object tempObject;
                tempObject = literal;
                idMap_["true"] = tempObject;
                System.Object generatedAux = tempObject;
                object tempObject2;
                tempObject2 = literal;
                idMap_["TRUE"] = tempObject2;
                System.Object generatedAux2 = tempObject2;
                object tempObject3;
                tempObject3 = literal;
                idMap_["True"] = tempObject3;
                System.Object generatedAux3 = tempObject3;

                literal = new LiteralBool("false");
                object tempObject4;
                tempObject4 = literal;
                idMap_["false"] = tempObject4;
                System.Object generatedAux4 = tempObject4;
                object tempObject5;
                tempObject5 = literal;
                idMap_["FALSE"] = tempObject5;
                System.Object generatedAux5 = tempObject5;
                object tempObject6;
                tempObject6 = literal;
                idMap_["False"] = tempObject6;
                System.Object generatedAux6 = tempObject6;
            }
        }
Пример #3
0
 /// <summary> Factory.</summary>
 /// <param name="literal">Literal. Must be either <tt>true</tt>, or <tt>TRUE</tt>,
 /// or <tt>True</tt>, or <tt>false</tt>, or <tt>FALSE</tt>, or <tt<False</tt>.
 /// </param>
 /// <returns> Instance.
 /// @throws java.lang.IllegalArgumentException Invalid literal.
 /// </returns>
 //UPGRADE_NOTE: Synchronized keyword was removed from method 'valueOf'. Lock expression was added. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1027"'
 public static LiteralBool valueOf(System.String literal)
 {
     lock (typeof(CodeStreet.Selector.Parser.LiteralBool))
     {
         //UPGRADE_TODO: Method 'java.util.Map.get' was converted to 'System.Collections.IDictionary.Item' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javautilMapget_javalangObject"'
         LiteralBool ret = (LiteralBool)idMap_[literal];
         if (ret == null)
         {
             throw new System.ArgumentException("Invalid literal: " + literal);
         }
         return(ret);
     }
 }