if (!l.isMultiValued()) {
int value = (Integer)l.getValue();
isNegative = value < 0;
}
}
Expression maxLength = new Function(
SourceSystemFunctions.SUBTRACT_OP,
Arrays.asList(new Function(
SourceSystemFunctions.LENGTH,
Arrays.asList(function.getParameters().get(0)),
TypeFacility.RUNTIME_TYPES.INTEGER),
new Function(
SourceSystemFunctions.SUBTRACT_OP,
Arrays.asList(
function.getParameters().get(1),
new Literal(1, TypeFacility.RUNTIME_TYPES.INTEGER)),
TypeFacility.RUNTIME_TYPES.INTEGER)),