| 1469 | } |
| 1470 | |
| 1471 | public void emitUnboxed(C context, ObjExpr objx, GeneratorAdapter gen){ |
| 1472 | if(targetClass != null && field != null) |
| 1473 | { |
| 1474 | target.emit(C.EXPRESSION, objx, gen); |
| 1475 | gen.visitLineNumber(line, gen.mark()); |
| 1476 | gen.checkCast(getType(targetClass)); |
| 1477 | gen.getField(getType(targetClass), fieldName, Type.getType(field.getType())); |
| 1478 | } |
| 1479 | else |
| 1480 | throw new UnsupportedOperationException("Unboxed emit of unknown member"); |
| 1481 | } |
| 1482 | |
| 1483 | public void emit(C context, ObjExpr objx, GeneratorAdapter gen){ |
| 1484 | if(targetClass != null && field != null) |