public WaferMapRenderer(Integer paintLimit, Integer paintIndexMethod) { WaferMapRenderer waferMapRenderer = this; this.paintIndex = (Map) new HashMap(); this.paintLimit = paintLimit != null ? paintLimit.intValue() : 35; this.paintIndexMethod = 1; if (paintIndexMethod == null || !this.isMethodValid(paintIndexMethod.intValue())) return; this.paintIndexMethod = paintIndexMethod.intValue(); }
public void TestMethod() { AbstractClass abc = null; Class clazz = java.lang.Object.instancehelper_getClass(this); string testName = abc.Name; abc.Name = testName; Integer a = new Integer(0); int i = a.intValue(); AbstractClass.InnerAbstractClass inf = new AnonymousClassAbstractClass_InnerAbstractClass1(i, this); Integer[] b = null; bool ab = (a == null) || (b == null); int j = 0; assertEquals("message :", i, j); }
// $ANTLR end "multExpr" // $ANTLR start "atom" // JavaCompat\\Expr.g3:96:0: atom returns [int value] : ( INT | ID | '(' expr ')' ); private int atom( ) { int value = default(int); IToken INT4 = null; IToken ID5 = null; int expr6 = default(int); try { // JavaCompat\\Expr.g3:97:9: ( INT | ID | '(' expr ')' ) int alt5 = 3; switch (input.LA(1)) { case INT: { alt5 = 1; } break; case ID: { alt5 = 2; } break; case 9: { alt5 = 3; } break; default: { NoViableAltException nvae = new NoViableAltException("", 5, 0, input); throw nvae; } } switch (alt5) { case 1: // JavaCompat\\Expr.g3:97:9: INT { INT4 = (IToken)Match(input, INT, Follow._INT_in_atom231); value = Integer.parseInt((INT4 != null?INT4.Text:null)); } break; case 2: // JavaCompat\\Expr.g3:98:9: ID { ID5 = (IToken)Match(input, ID, Follow._ID_in_atom243); Integer v = (Integer)memory.get((ID5 != null?ID5.Text:null)); if (v != null) { value = v.intValue(); } else { JSystem.err.println("undefined variable " + (ID5 != null?ID5.Text:null)); } } break; case 3: // JavaCompat\\Expr.g3:104:9: '(' expr ')' { Match(input, 9, Follow._9_in_atom263); PushFollow(Follow._expr_in_atom265); expr6 = expr(); state._fsp--; Match(input, 10, Follow._10_in_atom267); value = expr6; } break; } } catch (RecognitionException re) { ReportError(re); Recover(input, re); } finally { } return(value); }
public static FieldValue getFieldValue(string value, java.lang.Integer valueTypeObj) { int valueType = valueTypeObj.intValue(); FieldValue field = null; if (value == null) { valueType = Evaluator.__Fields.NULL_TYPE; } switch (valueType) { case Evaluator.__Fields.NULL_TYPE: field = new FieldImpl(null); break; case Evaluator.__Fields.CHAR_TYPE: field = new FieldImpl(char.Parse(value)); break; case Evaluator.__Fields.BYTE_TYPE: //byte b = Encoding.UTF8.GetBytes(value)[0]; field = new FieldImpl(byte.Parse(value)); break; case Evaluator.__Fields.SHORT_TYPE: field = new FieldImpl(short.Parse(value)); break; case Evaluator.__Fields.INTEGER_TYPE: field = new FieldImpl(int.Parse(value)); break; case Evaluator.__Fields.LONG_TYPE: field = new FieldImpl(long.Parse(value)); break; case Evaluator.__Fields.FLOAT_TYPE: field = new FieldImpl(float.Parse(value)); break; case Evaluator.__Fields.DOUBLE_TYPE: field = new FieldImpl(double.Parse(value)); break; case Evaluator.__Fields.BOOLEAN_TYPE: field = new FieldImpl(bool.Parse(value)); break; case Evaluator.__Fields.STRING_TYPE: field = new FieldImpl(value); break; case Evaluator.__Fields.DATE_TYPE: //MN: I think its fine like this, seems to work ! field = new FieldImpl(DateTime.Parse(value)); break; case Evaluator.__Fields.ARRAY_TYPE: //MN: I think its fine like this. field = new FieldImpl(value); break; case Evaluator.__Fields.OBJECT_TYPE: field = new FieldImpl(value); break; } return(field); }
public static void set(object arrayObj, int index, object value) { if (arrayObj == null) { throw new java.lang.NullPointerException(); } Type type = arrayObj.GetType(); if (ReflectUtil.IsVector(type) && ClassLoaderWrapper.GetWrapperFromType(type.GetElementType()).IsPrimitive) { java.lang.Boolean booleanValue = value as java.lang.Boolean; if (booleanValue != null) { setBoolean(arrayObj, index, booleanValue.booleanValue()); return; } java.lang.Byte byteValue = value as java.lang.Byte; if (byteValue != null) { setByte(arrayObj, index, byteValue.byteValue()); return; } java.lang.Character charValue = value as java.lang.Character; if (charValue != null) { setChar(arrayObj, index, charValue.charValue()); return; } java.lang.Short shortValue = value as java.lang.Short; if (shortValue != null) { setShort(arrayObj, index, shortValue.shortValue()); return; } java.lang.Integer intValue = value as java.lang.Integer; if (intValue != null) { setInt(arrayObj, index, intValue.intValue()); return; } java.lang.Float floatValue = value as java.lang.Float; if (floatValue != null) { setFloat(arrayObj, index, floatValue.floatValue()); return; } java.lang.Long longValue = value as java.lang.Long; if (longValue != null) { setLong(arrayObj, index, longValue.longValue()); return; } java.lang.Double doubleValue = value as java.lang.Double; if (doubleValue != null) { setDouble(arrayObj, index, doubleValue.doubleValue()); return; } } try { CheckArray(arrayObj).SetValue(value, index); } catch (InvalidCastException) { throw new java.lang.IllegalArgumentException("argument type mismatch"); } catch (IndexOutOfRangeException) { throw new java.lang.ArrayIndexOutOfBoundsException(); } }