if (exprType == Expr.INTEGER) {
return new Integer(co.intValue()); // Integer Value
} else if (exprType == Expr.BOOLEAN) {
return new Boolean(co.isTrue()); // Boolean Value
} else if (exprType == Expr.REAL) {
return new Double(co.realValue()); // Real Value
} else if (exprType == Expr.STRING) {
return co.stringValue(); // String Value
} else {
throw new IllegalArgumentException(attrName + ": unexpected type found.");
}