@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) - ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) / ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) - ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) + ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) + ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) / ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) * ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) / ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return ((Integer) left.getReducedValue(ctx, thisValue, factory)) - ((Integer) right.getReducedValue(ctx, thisValue, factory)); }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { try { Class i = (Class) clsStmt.getReducedValue(ctx, thisValue, factory); if (i == null) throw new ClassCastException(); return i.isInstance(stmt.getReducedValue(ctx, thisValue, factory)); } catch (ClassCastException e) { throw new RuntimeException("not a class reference: " + clsStmt.getName()); } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { try { Class i = (Class) clsStmt.getReducedValue(ctx, thisValue, factory); if (i == null) throw new ClassCastException(); return i.isInstance(stmt.getReducedValue(ctx, thisValue, factory)); } catch (ClassCastException e) { throw new RuntimeException("not a class reference: " + clsStmt.getName()); } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { try { Class i = (Class) clsStmt.getReducedValue(ctx, thisValue, factory); if (i == null) throw new ClassCastException(); return i.isInstance(stmt.getReducedValue(ctx, thisValue, factory)); } catch (ClassCastException e) { throw new CompileException("not a class reference: " + clsStmt.getName()); } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { try { Object o = stmt.getReducedValue(ctx, thisValue, factory); if (o == null) return false; Class i = (Class) clsStmt.getReducedValue(ctx, thisValue, factory); if (i == null) throw new ClassCastException(); return DataConversion.canConvert(i, o.getClass()); } catch (ClassCastException e) { throw new RuntimeException("not a class reference: " + clsStmt.getName()); } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return PropertyAccessor.get( expr, start, offset, main.getReducedValue(ctx, thisValue, factory), factory, thisValue, pCtx); }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { return PropertyAccessor.get( name, main.getReducedValue(ctx, thisValue, factory), factory, thisValue); }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { interceptor.doBefore(node, factory); interceptor.doAfter(ctx = node.getReducedValue(ctx, thisValue, factory), node, factory); return ctx; } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { try { String i = String.valueOf(soundslike.getReducedValue(ctx, thisValue, factory)); if (i == null) throw new ClassCastException(); String x = (String) stmt.getReducedValue(ctx, thisValue, factory); if (x == null) throw new CompileException("not a string: " + stmt.getName()); return soundex(i).equals(soundex(x)); } catch (ClassCastException e) { throw new CompileException("not a string: " + soundslike.getName()); } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { try { String i = String.valueOf(soundslike.getReducedValue(ctx, thisValue, factory)); if (i == null) throw new ClassCastException(); String x = (String) stmt.getReducedValue(ctx, thisValue, factory); if (x == null) throw new CompileException("not a string: " + stmt.getName(), stmt.getExpr(), stmt.getStart()); return soundex(i).equals(soundex(x)); } catch (ClassCastException e) { throw new CompileException("not a string: " + soundslike.getName(), soundslike.getExpr(), soundslike.getStart()); } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { try { String i = String.valueOf(soundslike.getReducedValue(ctx, thisValue, factory)); if (i == null) throw new ClassCastException(); String x = (String) stmt.getReducedValue(ctx, thisValue, factory); if (x == null) throw new CompileException("not a string: " + stmt.getName(), stmt.getExpr(), getStart()); return similarity(i, x); } catch (ClassCastException e) { throw new CompileException("not a string: " + soundslike.getName(), soundslike.getExpr(), soundslike.getStart()); } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { try { String i = String.valueOf(soundslike.getReducedValue(ctx, thisValue, factory)); if (i == null) throw new ClassCastException(); String x = (String) stmt.getReducedValue(ctx, thisValue, factory); if (x == null) throw new CompileException("not a string: " + stmt.getName(), stmt.getExpr(), getStart()); return similarity(i, x); } catch (ClassCastException e) { throw new CompileException("not a string: " + soundslike.getName(), soundslike.getExpr(), soundslike.getStart()); } }