if (!(value instanceof RangeValue)) {
throw new IllegalArgumentException("Error in RangeValueNode.setOutputJavaValue: output must be an instance of RangeValue, not an instance of: " + value.getClass().getName());
}
// Take info from range value and put into ours
RangeValue rangeValue = (RangeValue)value;
form = new Form(rangeValue.hasLeftBound(), rangeValue.hasRightBound(), rangeValue.includesLeftBound(), rangeValue.includesRightBound());
if (form.hasLeftBound()) {
leftNode.setOutputJavaValue(rangeValue.getLeftEndpoint());
}
if (form.hasRightBound()) {
rightNode.setOutputJavaValue(rangeValue.getRightEndpoint());
}
}