throw new UnsupportedCompilationException("Can't compile expression/constant setters."); context.setRoot(compiled.getRoot()); context.setCurrentObject(compiled.getRoot()); context.remove(PRE_CAST); String setterCode = compiled.getExpression().toSetSourceString(context, compiled.getRoot()); String castExpression = (String) context.get(PRE_CAST); throw new UnsupportedCompilationException("Can't compile null setter body."); if (compiled.getRoot() == null) throw new UnsupportedCompilationException("Can't compile setters with a null root object."); String pre = getRootExpression(compiled.getExpression(), compiled.getRoot(), context);
throw new UnsupportedCompilationException("Can't compile expression/constant setters."); context.setRoot(compiled.getRoot()); context.setCurrentObject(compiled.getRoot()); context.remove(PRE_CAST); String setterCode = compiled.getExpression().toSetSourceString(context, compiled.getRoot()); String castExpression = (String) context.get(PRE_CAST); throw new UnsupportedCompilationException("Can't compile null setter body."); if (compiled.getRoot() == null) throw new UnsupportedCompilationException("Can't compile setters with a null root object."); String pre = getRootExpression(compiled.getExpression(), compiled.getRoot(), context);
String getterCode; context.setRoot(compiled.getRoot()); context.setCurrentObject(compiled.getRoot()); context.remove(PRE_CAST); getterCode = compiled.getExpression().toGetSourceString(context, compiled.getRoot()); } catch (NullPointerException e) String rootExpr = !getterCode.equals("null") ? getRootExpression(compiled.getExpression(), compiled.getRoot(), context) : "";
String getterCode; context.setRoot(compiled.getRoot()); context.setCurrentObject(compiled.getRoot()); context.remove(PRE_CAST); getterCode = compiled.getExpression().toGetSourceString(context, compiled.getRoot()); } catch (NullPointerException e) String rootExpr = !getterCode.equals("null") ? getRootExpression(compiled.getExpression(), compiled.getRoot(), context) : "";