public static int resolveType(Object o) { if (o == null) return DataTypes.OBJECT; else return __resolveType(o.getClass()); }
public static int resolveType(Object o) { if (o == null) return DataTypes.OBJECT; else return __resolveType(o.getClass()); }
public static int resolveType(Object o) { if (o == null) return DataTypes.OBJECT; else return __resolveType(o.getClass()); }
public static Object doOperations(Object val1, int operation, Object val2) { return doOperations(val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()), val1, operation, val2 == null ? DataTypes.NULL : __resolveType(val2.getClass()), val2); }
public static Object doOperations(Object val1, int operation, Object val2) { return doOperations(val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()), val1, operation, val2 == null ? DataTypes.NULL : __resolveType(val2.getClass()), val2); }
public static Object doOperations(Object val1, int operation, Object val2) { return doOperations(val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()), val1, operation, val2 == null ? DataTypes.NULL : __resolveType(val2.getClass()), val2); }
public void setRightMost(ASTNode right) { BinaryOperation n = this; while (n.right != null && n.right instanceof BinaryOperation) { n = (BinaryOperation) n.right; } n.right = right; if (n == this) { if ((rType = ParseTools.__resolveType(n.right.getEgressType())) == 0) rType = -1; } }
public void setRightMost(ASTNode right) { BinaryOperation n = this; while (n.right != null && n.right instanceof BinaryOperation) { n = (BinaryOperation) n.right; } n.right = right; if (n == this) { if ((rType = ParseTools.__resolveType(n.right.getEgressType())) == 0) rType = -1; } }
public void setRightMost(ASTNode right) { BinaryOperation n = this; while (n.right != null && n.right instanceof BinaryOperation) { n = (BinaryOperation) n.right; } n.right = right; if (n == this) { if ((rType = ParseTools.__resolveType(n.right.getEgressType())) == 0) rType = -1; } }
public static Object doOperations(Object val1, int operation, int type2, Object val2) { return doOperations(val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()), val1, operation, type2, val2); }
public static Object doOperations(Object val1, int operation, int type2, Object val2) { return doOperations(val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()), val1, operation, type2, val2); }
public static Object doOperations(Object val1, int operation, int type2, Object val2) { return doOperations(val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()), val1, operation, type2, val2); }
return Object.class; else return __resolveType(boxPrimitive(left)) < __resolveType(boxPrimitive(right)) ? right : left;
public static Object doOperations(int type1, Object val1, int operation, int type2, Object val2) { if (type1 == -1) type1 = val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()); if (type2 == -1) type2 = val2 == null ? DataTypes.OBJECT : __resolveType(val2.getClass()); switch (type1) { case BIG_DECIMAL: switch (type2) { case BIG_DECIMAL: return doBigDecimalArithmetic((BigDecimal) val1, operation, (BigDecimal) val2, false, -1); default: if (type2 > 99) { return doBigDecimalArithmetic((BigDecimal) val1, operation, getInternalNumberFromType(val2, type2), false, -1); } else { return _doOperations(type1, val1, operation, type2, val2); } } default: return _doOperations(type1, val1, operation, type2, val2); } }
public static Object doOperations(int type1, Object val1, int operation, int type2, Object val2) { if (type1 == -1) type1 = val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()); if (type2 == -1) type2 = val2 == null ? DataTypes.OBJECT : __resolveType(val2.getClass()); switch (type1) { case BIG_DECIMAL: switch (type2) { case BIG_DECIMAL: return doBigDecimalArithmetic((BigDecimal) val1, operation, (BigDecimal) val2, false, -1); default: if (type2 > 99) { return doBigDecimalArithmetic((BigDecimal) val1, operation, getInternalNumberFromType(val2, type2), false, -1); } else { return _doOperations(type1, val1, operation, type2, val2); } } default: return _doOperations(type1, val1, operation, type2, val2); } }
public static Object doOperations(int type1, Object val1, int operation, int type2, Object val2) { if (type1 == -1) type1 = val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass()); if (type2 == -1) type2 = val2 == null ? DataTypes.OBJECT : __resolveType(val2.getClass()); // System.out.println("{" + val1 + " " + DebugTools.getOperatorSymbol(operation) + " " + val2 + "}"); switch (type1) { case BIG_DECIMAL: switch (type2) { case BIG_DECIMAL: return doBigDecimalArithmetic((BigDecimal) val1, operation, (BigDecimal) val2, false, -1); default: if (type2 > 99) { return doBigDecimalArithmetic((BigDecimal) val1, operation, getInternalNumberFromType(val2, type2), false, -1); } else { return _doOperations(type1, val1, operation, type2, val2); } } default: return _doOperations(type1, val1, operation, type2, val2); } }
public OperativeAssign(String variableName, char[] expr, int operation, int fields, ParserContext pCtx) { this.varName = variableName; this.operation = operation; this.name = expr; if ((fields & COMPILE_IMMEDIATE) != 0) { egressType = (statement = (ExecutableStatement) subCompileExpression(expr, pCtx)).getKnownEgressType(); if (pCtx.isStrongTyping()) { knownInType = ParseTools.__resolveType(egressType); } } }
public OperativeAssign(String variableName, char[] expr, int start, int offset, int operation, int fields, ParserContext pCtx) { super(pCtx); this.varName = variableName; this.operation = operation; this.expr = expr; this.start = start; this.offset = offset; if ((fields & COMPILE_IMMEDIATE) != 0) { egressType = (statement = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx)).getKnownEgressType(); if (pCtx.isStrongTyping()) { knownInType = ParseTools.__resolveType(egressType); } if (!pCtx.hasVarOrInput(varName)) { pCtx.addInput(varName, egressType); } } }
public OperativeAssign(String variableName, char[] expr, int start, int offset, int operation, int fields, ParserContext pCtx) { super(pCtx); this.varName = variableName; this.operation = operation; this.expr = expr; this.start = start; this.offset = offset; if ((fields & COMPILE_IMMEDIATE) != 0) { egressType = (statement = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx)).getKnownEgressType(); if (pCtx.isStrongTyping()) { knownInType = ParseTools.__resolveType(egressType); } if (!pCtx.hasVarOrInput(varName)) { pCtx.addInput(varName, egressType); } } }
lType = ParseTools.__resolveType(left.egressType); rType = ParseTools.__resolveType(right.egressType); lType = rType = ParseTools.__resolveType(left.egressType); lType = ParseTools.__resolveType(this.left.egressType); rType = ParseTools.__resolveType(this.right.egressType);